LNMP Open Pathinfo,lnmpnginx in one-click installation environment
Questions and principles can be consulted: http://www.laruence.com/2009/11/13/1138.html
If you are using the Lnmp script one-click installation of the development environment, you can open a pathinfo as follows:
1. Note the try_files in nginx.conf (because it repeats with pathinfo.conf), turn on the pathinfo.conf configuration:
1 Location ~ [^/]\.php (/| $)2{3 # comment Try_files $uri =404; To enable PathInfo4 #try_files $uri =404; 5 Fastcgi_pass unix:/tmp/php-cgi.sock; 6 fastcgi_index index.php; 7 include fastcgi.conf; 8 include pathinfo.conf; 9 }
That is, comment out line 4th and open line 8th.
2. Restart Nginx Service:
Nginx-s Reload
http://www.bkjia.com/PHPjc/923714.html www.bkjia.com true http://www.bkjia.com/PHPjc/923714.html techarticle LNMP One-click installation in the environment of Nginx open pathinfo,lnmpnginx problems and principles can be consulted: http://www.laruence.com/2009/11/13/1138.html If you are using the Lnmp script one-click installation of the development environment, you can ...