Nginx 405(Not Allowed)错误的解决方法

服务器技术 6 年前 回复

, ,

错误显示类似:Failed to load resource: the server responded with a status of 405 (Not Allowed)

Nginx的解决方法:

在你的网站配置文件*.conf,譬如我的hilau.conf

在sever{}括号直接这样的代码:

error_page 405 =200 $uri;
支付宝打赏微信打赏

如果此文对你有帮助,欢迎打赏作者。


Deprecated: str_contains(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/wwwroot/hilau.com/wp-includes/comment-template.php on line 2687

发表评论

欢迎回来 (打开)

(必填)