Home > Backend Development > PHP Tutorial > nginx下面php程序解析404的有关问题

nginx下面php程序解析404的有关问题

WBOY
Release: 2016-06-13 13:39:26
Original
981 people have browsed it

nginx下面php程序解析404的问题
在apache或者xampp下面,在网址中输入xxx.php/ss/de/sf之类的url,当xxx.php文件存在的时候会访问它,但是在nginx下面好像老是显示404错误,不知道该如何配置nginx才能达到相同的效果?谢谢

------解决方案--------------------
不懂您在说什么
------解决方案--------------------
好象应该是window与linux的区别。
------解决方案--------------------
看看你的conf中是不是

location ~ .*\.php5?$

这样配置的,如果是的话

修改成

location ~ .*\.php5?(/.*)?$


------解决方案--------------------
最好把你的vhost配置贴出来

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template