We stand alone,
together.
- BAND of BROTHERS
dreamhost的503错误
偶尔在 pivot 后台发布日志的时候会碰到 Service Temporarily Unavailable 的503错误。一直以为是 pivot 本身存在的 Bug ,加上出现的频率很小,也就没去在意。
但这次要发布的内容里面包含某些必须加的URL,一加上提交就出503错误,去掉那段URL就正常,实在是邪门。把 pivot 提交时的所有多余代码都注释掉状况依旧。到 dreamhost 的 wiki 上一查才知道可能是它的 mod_security 在作怪。检查 error.log ,果然有一大堆的 mod_security: Access denied with code 503 错误。
这个在 dreamhost domain 设置里面缺省激活的选项看来设置了不少的过滤规则,包括 referer URL , POST data, POST Content-Length 等各方面非法内容的检查。安全性固然有所提高,但正则匹配误杀的可能性也不小。像咱这么个小 Blog ,还是不要这些过滤规则算了。到 Manager Domains 里面把 dreamhost highly recommended 的 Extra Web Security 的选项去掉,一切恢复正常。
This Entry was Last Modified on 2007-05-30 15:21
1 条评论:
- dreamhost (link) 于 2007-12-20 14:09
zongtilaishuo haishi bucuo de
日志存档
继续阅读
ac米兰 ajax apache api blog blogchina cctv css dhtml download dreamhost dvd encoding error feeds firefox flash framework gmail google google_analytics google_talk http ide ie ie7 javascript jquery linux maxthon mod_rewrite movies msn mvc mysql oracle php pippo pivot rss shell socket sohu spammers svn vs web web2 webclient weblogic windows xml zend 阿根廷 安全漏洞 奥运 备份 变形金刚 程序员 地铁 浮动层 搞笑 工具 冠军杯 管理 火箭 进程 客户端 篮球 厉 旅行 命令行 欧洲杯 人生 设计模式 世界杯 数据库 搜索引擎 算法 图片 无极 系统优化 笑话 姚明 游戏 源代码 周杰伦 字符编码 足球 浏览器

