Home > Backend Development > PHP Tutorial > 请教nginx 403 forbidden 如何解决?

请教nginx 403 forbidden 如何解决?

WBOY
Release: 2016-06-20 12:29:56
Original
1257 people have browsed it

大家好,我的网站使用nginx+php,我访问自己的网站上的html静态文件时提示“403 forbidden”,但是如果我将这个文件后缀改为.php文件,再访问就ok了,请问这是个什么问题,该如何解决呢?
谢谢!


回复讨论(解决方案)

你查看一下你的nginx的配置文件内容吧

403是服务器拒绝请求访问,看看权限设置问题,如果是linux,请检查这个静态文件本身的权限是否可以访问。

应该是权限问题了呢!!!

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