首页 > 其他 > 详细

配置ngnix

时间:2016-12-08 17:42:32      阅读:165      评论:0      收藏:0      [点我收藏+]

 

server {
        listen 80;
        server_name     www.aaa.com;
        root    /home/www/...;
        index   index.php index.html index.htm;

        location ~ \.php/ {
                if ($request_uri ~ ^(.+\.php)(/.+?)($|\?)) { }
                fastcgi_pass 127.0.0.1:9000;
                include fastcgi_params;
                fastcgi_param SCRIPT_NAME     $1;
                fastcgi_param PATH_INFO       $2;
                fastcgi_param SCRIPT_FILENAME $document_root$1;
        }
        location ~ \.php$ {
                fastcgi_pass 127.0.0.1:9000;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                include fastcgi_params;
        }

        access_log      /home/www/wwwlogs/www_aaa_com_access.log  access;
        error_log       /home/www/wwwlogs/www_aaa_com_error.log;

}

 

配置ngnix

原文:http://www.cnblogs.com/wicub/p/6145693.html

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