Problems related to parsing 404 in php programs under nginx

Source: Internet
Author: User
In nginx, the php program resolves 404 issues under apache or xampp. enter xxx in the URL. php/ss/de/sf and other URLs, when xxx. the php file will be accessed when it exists, but it seems that the error 404 is always displayed under nginx. I don't know how to configure nginx to resolve the problem of 404 in php programs under the same nginx.
Under apache or xampp, enter xxx in the URL. php/ss/de/sf and other URLs, when xxx. when the php file exists, it will be accessed, but it seems that the error 404 is always displayed under nginx. I don't know how to configure nginx to achieve the same effect? Thank you.

------ Solution --------------------
What are you talking about?
------ Solution --------------------
It seems to be the difference between Windows and linux.
------ Solution --------------------
Check if your conf file is correct.

Location ~ . * \. Php5? $

If yes

Modify

Location ~ . * \. Php5? (/.*)? $


------ Solution --------------------
You 'd better paste your vhost configuration
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.