
nginx
iteye_12887
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Nginx Rewrite 去掉重定向的参数
把http://example.com/test.php?para=xxx 重定向到 http://example.com/new若按照默认的写法:rewrite ^/test.php(.*) /new permanent;重定向后的结果是:http://example.com/new?para=xxx如果改写成:rewrite ^/test.php(.*) /new? perman...原创 2013-07-25 02:09:11 · 3404 阅读 · 0 评论 -
Nginx HTTP Post Method: 405 Method not allowed
Apache、IIS、Nginx等绝大多数web服务器,都不允许静态文件响应POST请求,否则会返回“HTTP/1.1 405Method not allowed”错误 测试工具:可以使用 http://code.google.com/p/rest-client/ 或者 curl 命令 如果一定要用post方式访问,对于Nginx,可以修改nginc.con...2012-05-09 10:45:46 · 548 阅读 · 0 评论 -
Nginx limit http DELETE SEARCH and other methods
Limit Available Methods ## Only allow these request methods ## if ($request_method !~ ^(GET|HEAD|POST)$ ) { return 444; }## Do not accept DELETE, SEARCH and other methods ...2012-05-09 10:49:35 · 138 阅读 · 0 评论 -
nginx ssi
HttpSsiModule This module provides a filter which processes Server-Side Includes (SSI) in the input. The list of the supported commands for SSI is currently incomplete. ...2012-05-09 16:26:35 · 196 阅读 · 0 评论 -
Nginx Auth Basic
Nginx Basic 认证 增加配置 auth_basic "Restricted Access"; auth_basic_user_file htpasswd; #密码文件生成/usr/bin/htpasswd -c /app/nginx/conf/htpasswd test...2012-05-14 14:16:52 · 200 阅读 · 0 评论