nginx 配置server 对于博客的二级域名很管用

server {
       listen 80;
       server_name ~^(?<subdomain>.+)\.t\.973k\.com$;
       index index.html index.htm index.php;
       access_log off;
       root /data/wsdata/wwwroot/test/$subdomain;
       location ~ .*\.(php|php5)?$ {
               fastcgi_pass   127.0.0.1:9000;
               fastcgi_index   index.php;
               include enable_fcgi.conf;
       }
}


你可能感兴趣的:(server,博客,include,listen)