TP5.1首页能访问,其它页面无法访问(Apache+Nginx配置问题)

浏览:341 发布日期:2019/04/16 分类:ThinkPHP5专区
TP5.1首页能访问,其它页面无法访问(Apache+Nginx配置问题)
配置如下:server {
        listen       80;
        root /home/wwwroot/piaopiao/public_html;
        server_name www.163.com;
        index  index.html index.php index.htm;
        error_page  400 /errpage/400.html;
        error_page  403 /errpage/403.html;
        error_page  404 /errpage/404.html;
        error_page  503 /errpage/503.html;
        location ~ \.php {
                fastcgi_pass  unix:/tmp/php-70-cgi.sock;
                fastcgi_index  index.php;
                fastcgi_split_path_info ^(.+\.php)(.*)$;  #新增
                fastcgi_param PATH_INFO $fastcgi_path_info; #新增
                fastcgi_param  SCRIPT_FILENAME  $DOCUMENT_ROOT$fastcgi_script_name;
                include fcgi.conf;
        }
        location ~ /\.ht {
                deny  all;
        }
}
最佳答案
评论( 相关
后面还有条评论,点击查看>>