tomcat配置一个ip多个域名

<Host name="localhost" debug="0" appBase="E:\Tomcat 5.0.28\webapps" 
unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
<Context path="" docBase="E:\Tomcat 5.0.28\webapps\baiying" reloadable="true" caseSensitive="false" debug="0">
</Context>
<Logger className="org.apache.catalina.logger.FileLogger"
 directory="logs"  prefix="localhost_log." suffix=".txt"
 timestamp="true"/>
<Alias>www.100class.com</Alias>
</Host>

<Host name="soke.localhost" debug="0" appBase="E:\Tomcat 5.0.28\webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Logger className="org.apache.catalina.logger.FileLogger"
directory="logs" prefix="localhost_log." suffix=".txt"
timestamp="true"/>
<Alias>www.51soke.com</Alias>
<Context path="" docBase="E:\Tomcat 5.0.28\webapps\soke" reloadable="true" caseSensitive="false" debug="0">
</Context>
</Host>

你可能感兴趣的:(apache,tomcat)