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;
}
}
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;
}
}
转载于:https://blog.51cto.com/312461613/1353350