ITeye博客

nginx405问题(post/get方法)

chembo · 2011-10-16 16:21 · nginx · 开源软件 · nginx · post · 405 · Markdown

使用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; }

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。