Open Yhzhtk opened 9 years ago
http://tomcat.apache.org/tomcat-7.0-doc/config/http.html
示例如下:
<Connector port="8081" protocol="HTTP/1.1" maxThreads="200" connectionTimeout="20000" enableLookups="false" redirectPort="8444" URIEncoding="UTF-8" compression="on" compressionMinSize="2048" compressableMimeType="text/html,text/xml,text/plain,text/javascript" />
enableLookups 表示 request.getRemoteHost() 是否返回域名,默认false,直接返回ip,提高效率。 compression 及相关参数表示是否启用gzip压缩,及其最小压缩大小,压缩的类型。 URIEncoding 表示默认的URL编码。
request.getRemoteHost()
http://tomcat.apache.org/tomcat-7.0-doc/config/http.html
示例如下:
enableLookups 表示
request.getRemoteHost()
是否返回域名,默认false,直接返回ip,提高效率。 compression 及相关参数表示是否启用gzip压缩,及其最小压缩大小,压缩的类型。 URIEncoding 表示默认的URL编码。