nginx

喜夏-厌秋 提交于 2020-10-06 02:34:14

nginx 开启 PATH_INFO 

在 fastcgi-php.conf 中去掉 注释的  fastcgi_param PATH_INFO $path_info;

在ci框架中 nginx的配置 

需要在 .php(.*)$

server {
    listen       80;
    server_name  player.xx.com;
    root   /www/player.xxx.com/player;
    index  index.php index.html index.htm;
	error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   /usr/share/nginx/html;
    }
    location ~ \.php(.*)$ {
        fastcgi_pass   php:9000;
        include        fastcgi-php.conf;
        include        fastcgi_params;
	}

   
}

 

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!