修改服务器Apache-Coyote/1.1标识为自定义内容

找到server.xml配置文件,路径如下:CATALINA_HOME/conf/server.xml
找到内容:

<Connection port="8080" protocol="HTTP/1.1"
              connectionTimeout="20000"
              redirectPort="8443"/>
修改为:
<Connection port="8080" protocol="HTTP/1.1"
              connectionTimeout="20000"
              redirectPort="8443"
              server="BaijinshanServer"/>

则用户看到的Server显示为BaijinshanServer

猜你喜欢

转载自baijinshan.iteye.com/blog/2215760