nginx405问题(post/get方法)
使用nginx作web服务器时,如果前端通过post方法去取一个静态文件时常常会出现405的结果。 解决办法: location ~ /gjp-oss/(images|css|js|modules|flash|html)/ { root /app_data/static/; error_page 405 =200 http://$host$request_uri; }
使用nginx作web服务器时,如果前端通过post方法去取一个静态文件时常常会出现405的结果。 解决办法: location ~ /gjp-oss/(images|css|js|modules|flash|html)/ { root /app_data/static/; error_page 405 =200 http://$host$request_uri; }
暂无评论。
评论功能维护中,当前仅展示历史评论。