Nginx + php-fpm combination solves the optimal PATHINFO Configuration

Source: Internet
Author: User
In my previous work, I encountered that newly created websites in the nginx + php environment could not be accessed, and various errors were often caused by a single portal and some frameworks. Early nginx did not support pathinfo, but only through operations such as regular expressions, supplemented by cgi. fix_pathinfo in php. ini ,. Later I learned that this may cause vulnerabilities, as shown in this article.

In my previous work, I encountered that newly created websites in the nginx + php environment could not be accessed, and various errors were often caused by a single portal and some frameworks. Early nginx did not support pathinfo, but only through operations such as regular expressions, supplemented by cgi. fix_pathinfo in php. ini ,. Later I learned that this may cause vulnerabilities, as shown in this article.

In my previous work, I encountered that newly created websites in the nginx + php environment could not be accessed, and various errors were often caused by a single portal and some frameworks. Early nginx did not support pathinfo, but only through operations such as regular expressions, supplemented by cgi. fix_pathinfo in php. ini ,. Later I learned that this may cause a vulnerability, as described in this article, a possible security vulnerability of Nginx + PHP CGI. Now the newer version of nginx has handled this problem. As long as the configuration is appropriate, there will be no problems.

[...]

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.