您的位置:首页 > 运维架构 > Nginx

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

2014-01-21 10:38 190 查看
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