" \4 w2 S9 O" D9 f: E3 p/ oIn the event of a problem or error, Apachecan be configured to do one of four things,+ l! E9 f. ^0 o x
) A5 [ v Q) p6 m7 t" g' v1. output asimple hardcoded error message输出一个简单生硬的错误代码信息9 ~) y i- y, B; O
2. output acustomized message输出一段信息 0 N0 }; [' E# n& }3. redirect to alocal URL-path to handle the problem/error转向一个本地的自定义页面 2 e. s2 l) y, ?; o4. redirect to an external URL to handle theproblem/error转向一个外部URL7 p' V' o7 k ^ n6 C9 i# R
* \8 l0 ~: @5 [* l/ C' B# F+ w7 I经测试,对于400错误只有方法2有效,返回包不会再包含cookie内容 ' P4 E) w/ \3 k5 ?$ J4 Q' v( V! ]2 W0 W) R
Apache配置: ; @3 s4 T/ N9 {3 [. d- d7 X& e% p% G- B) U. [
ErrorDocument400 " security test" " Z/ G4 R1 S6 d1 G* M3 ?" [6 f7 B' m) J& c
当然,升级apache到最新也可:)。 9 @1 V" v0 H! T* t: Q ( ~2 c s3 p: y. l参考:http://httpd.apache.org/security/vulnerabilities_22.html , i; \" B1 t4 P1 Y2 D! v, v . |+ B& M4 A. q8 K4 V" t