我在windows上运行tomcat8。我需要为我的应用创建一个子域名。我使用以下步骤在server.xml中配置子域,但是我在点击子域url时得到了404.
的Server.xml
<Host name="subdomain.ab123.com" appBase="testapps\subdomain" unpackWARs="true" >
<Context antiJARLocking="true" docBase="C:\tomcatapps\testapps\subdomain" path=""/>
</Host>
<Host name="ab123.com" appBase="testapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
Tomcat目录结构
tomcatapps
**testapps**
host-manager
META-INF
ROOT
**subdomain**
host-manager
META-INF
ROOT