首页 > 其他 > 详细

nginx配置vhost配置文件详解

时间:2017-05-31 13:48:19      阅读:347      评论:0      收藏:0      [点我收藏+]
//千锋PHP-PHP培训的实力派
server { listen
80; server_name www.sina.com; root /data/www/sina; index index.php; location ~ .*\.(php|php5)?$ { root /data/www/sina; try_files $uri =404; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } location ~ /.git { return 403; } location ~* ^/Admin{ return 403; } location ~* ^/bank{ return 403; } }

 

nginx配置vhost配置文件详解

原文:http://www.cnblogs.com/gaohj/p/6923490.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!