在server.xml中<Engine></Engine>下添加2个host就可以了。
1
2
3
4
5
6
|
< Host name = "www.abcd.com" debug = "0" appBase = "webapps" unpackWARs = "true" autoDeploy = "true" xmlValidation = "false" xmlNamespaceAware = "false" >
< Context path = "" docBase = "D:\web\abcd.com" />
</ Host >
< Host name = "www.xyz.com" debug = "0" appBase = "webapps" unpackWARs = "true" autoDeploy = "true" xmlValidation = "false" xmlNamespaceAware = "false" >
< Context path = "" docBase = "D:\web\xyz.com" />
</ Host >
|