Nginx PHP支持
生活随笔
收集整理的這篇文章主要介紹了
Nginx PHP支持
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
Nginx 支持 PHP
server { server_name www.www1.com www1.com; location / { index index.php index.html; root /web/www/www1.com } location ~ \.php$ { root html; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;// fastcgi_param 放置PHP動態(tài)程序的主目錄,也是scripts$fastcgi_script_name 前面指定的目錄; include fastcgi_params;// fastcgi 進程的參數(shù)配置文件;}# deny access to .htaccess files, if Apache's document root # concurs with nginx's one # #location ~ /\.ht { # deny all; #} }
?
轉(zhuǎn)載于:https://www.cnblogs.com/sharesdk/p/7851707.html
總結(jié)
以上是生活随笔為你收集整理的Nginx PHP支持的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: ssh登录虚拟机上的linux
- 下一篇: odoo many2one