web.xml:内容
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<welcome-file-list>
<welcome-file>a.html</welcome-file>
</welcome-file-list>
</web-app>
二:
修改端口号为80端口号:
-->
<Connector port="80" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
修改虚拟路径:
<Host name="www.systest.com" appBase="d:\home">
<Context path="" docBase="d:\home\mail"/>
</Host>
添加host
# Localhost (DO NOT REMOVE) Start
#127.0.0.1 localhost
127.0.0.1 www.systest.com
启动tomcat:
原文地址:http://blog.51cto.com/357712148/2104265