其他子配置文件:local.conf

server
        {
                listen 80;
                server_name aa.bb.com;
                index index.html index.htm index.php default.html default.htm default.php;
                root  /data/wwwroot;
 
                location / {
                    if (!-e $request_filename) {
                        rewrite ^(.*)$ /index.php?s=$1 last;
                        break;
                    }    
                    autoindex on;
 
                }
 
 
                 error_page   404 500 502 503 504  /404.html;
                location = /404.html {
 
                }
 
 
 
                location ~ \.php$ {
                    fastcgi_intercept_errors on;
                    fastcgi_pass   test;
                    fastcgi_index  index.php;
                    fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
                    include        fastcgi_params;
 
 
                }
 
                access_log /data/wwwlogs/local/access.log;
                error_log  /data/wwwlogs/local/error.log;
        }
 
posted @ 2016-07-05 17:25  星希望  阅读(364)  评论(0编辑  收藏  举报