当前第2页 返回上一页
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | server {
listen 80;
# 网站域名
server_name demo.local ;
# 代码根目录
root "D:/homestead/code/demo/api/public" ;
location / {
# 默认请求的文件排序
index index.html index.htm index.php;
# 判断请求的文件是否存在
if (!-e $request_filename ) {
# 如果不存在就进行重定向
rewrite ^/(.*)$ /index.php/ $1 last;
}
#autoindex on;
}
location ~ \.php(.*)$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
fastcgi_param SCRIPT_FILENAME $document_root $fastcgi_script_name ;
fastcgi_param PATH_INFO $fastcgi_path_info ;
fastcgi_param PATH_TRANSLATED $document_root $fastcgi_path_info ;
include fastcgi_params;
}
}
|
推荐教程:phpStudy极速入门视频教程
以上就是phpStudy2018 Nginx404的详细内容,更多文章请关注木庄网络博客!
返回前面的内容
相关阅读 >>
phpstudy2018的安装与使用
phpstudy2018 nginx404
更多相关阅读请进入《phpstudy2018》频道 >>
转载请注明出处:木庄网络博客 » phpStudy2018 Nginx404