**
重要的事情说三遍!一定要检查nginx.conf文件中http定义域是否有proxy_intercept_errors on;fastcgi_intercept_errors on;
重要的事情说三遍!一定要检查nginx.conf文件中http定义域是否有proxy_intercept_errors on;fastcgi_intercept_errors on;
重要的事情说三遍!一定要检查nginx.conf文件中http定义域是否有proxy_intercept_errors on;fastcgi_intercept_errors on;
**
然后正常设置error_page,本人的配置如下所示,仅供参考:
http {
proxy_intercept_errors on;
fastcgi_intercept_errors on;
server {
listen 80;
server_name localhost;
location / {
root html;
index index.html index.htm;
}
error_page 405 =200 $uri;
}
}
博客强调要检查nginx.conf文件中http定义域,还提到正常设置error_page,并给出了个人配置供参考,与解决post访问静态资源出现405问题相关。
2670

被折叠的 条评论
为什么被折叠?



