nginx file not found 错误处理小记
生活随笔
收集整理的這篇文章主要介紹了
nginx file not found 错误处理小记
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
2019獨角獸企業重金招聘Python工程師標準>>>
安裝完php php-fpm nginx 后訪問php出現file not found錯誤,html就沒問題配置文件server 段如下
server {listen 80; server_name 192.168.1.11;root /home/www;location ~ .*\.php${ try_files $uri =404;fastcgi_pass 127.0.0.1:9000;fastcgi_index index.php;include fcgi.conf;} }google一番,file not found錯誤與root指令配置錯誤有關,但是這里并沒有錯誤。
后來發現,php-fpm進程user 是apache,nginx work進程user是www。不一致導致的把php-fpm的啟動user改成www,就好了
轉載于:https://my.oschina.net/u/144160/blog/493229
總結
以上是生活随笔為你收集整理的nginx file not found 错误处理小记的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 简单的比较两数大小
- 下一篇: (转)前置++和后置++的区别