LNMP Open pathinfo,lnmpnginx_php Tutorial in one-click installation environment

Source: Internet
Author: User

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 ...

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.