解决:Invalid character found in method name. HTTP method names must be tokens

只需要在server.xml中增加maxHttpHeaderSize字段即可:

如:

        protocol="HTTP/1.1"
     maxThreads="1000"
     maxHttpHeaderSize="8192"
     minSpareThreads="100"
     maxSpareThreads="200"
     acceptCount="1000"
     maxConnections="1000"
     connectionTimeout="30000"
     keepAliveTimeout="15000"
     maxKeepAliveRequests="1"
      tcpNoDelay="true"
     redirectPort="8443"
     enableLookups="false"
     URIEncoding="UTF-8"/>

仅此而已

 

最后欢迎大家访问我的个人网站:1024s​​​​​​​

你可能感兴趣的:(运维)