Tomcat 禁止IP访问

使用tomcat时,希望用户只能通过域名映射来访问网站。

方法:将tomcat文件夹下的server.xml文件中的<Host>字段中的namelocalhost改为www.xxx.com,重启tomcat即可。

发表评论

邮箱地址不会被公开。 必填项已用*标注