phpst的nginx配置文件目录

萝らか妹 提交于 2020-03-04 15:36:48

phpstudy_xxx/extenxxxx/nginx/config/进vhosts找到自己的项目配置文件

location / {
if (!-e KaTeX parse error: Expected '}', got 'EOF' at end of input: …rewrite ^/(.*) /index.php/$1 last;
break;
}

        #autoindex  on;
    }

加到server里

记住配置完成后一定要重启一下nginx

配置文件

fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_split_path_info ^((?U).+.php)(/?.+)$;
fastcgi_param SCRIPT_FILENAME documentrootdocument_rootfastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED documentrootdocument_rootfastcgi_path_info;
include fastcgi_params;

这是原来的location里的,不用动

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