@websec007
2017-10-23T12:59:48.000000Z
字数 650
阅读 1293
未分类
/apache-tomcat-xxxx/conf/server.xml
<Connector />
标签的内部添加一个server属性即可。
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" server='Response_Server_tag' />
server='Response_Server_tag
,随后重启Tomcat服务即可。
C:\Users\admin>curl -I http://127.0.0.1:8080
HTTP/1.1 403 Forbidden
Pragma: No-cache
Cache-Control: no-cache
Expires: Thu, 01 Jan 1970 08:00:00 CST
Content-Type: text/html;charset=utf-8
Content-Length: 1108
Date: Mon, 23 Oct 2017 04:47:16 GMT
Server: Response_Server_Tag