Tomcat安全

限制http请求的消息主体和消息头的大小,此指令给了服务器管理员更大的可控性,以控制客户端不正常的请求行为 
"在配置文件#TOMCAT_HOME#/conf/server.xml中的每个Connector的“maxPostSize”属性为10240(单位为:Byte),“maxHttpHeaderSize”属性为8192单位为:Byte):
    <Connector port=""8080"" protocol=""HTTP/1.1""
               connectionTimeout=""20000"" maxPostSize=""10240"" maxHttpHeaderSize=”8192”
               redirectPort=""8443"" />

猜你喜欢

转载自jerry-2011.iteye.com/blog/2205103