Linux下tomcat虚拟主机配置

<Host name="www.XXXXXX.com.cn" debug="0" appBase="/usr/local/tomcat/apache-tomcat-5.5.25/temp/ROOT" unpackWARs="true" autoDeploy="true">

        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="sentom1_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>

        <Logger className="org.apache.catalina.logger.FileLogger" directory="logs" prefix="sentom1_log." suffix=".txt" timestamp="true"/>

         <Context path="" docBase="." debug="0" reloadable="true" crossContext="true"/>

</Host>


<Host name="XXXXXX.com.cn" debug="0" appBase="/usr/local/tomcat/apache-tomcat-5.5.25/temp/ROOT" unpackWARs="true" autoDeploy="true">

        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="sentom1_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>

        <Logger className="org.apache.catalina.logger.FileLogger" directory="logs" prefix="sentom1_log." suffix=".txt" timestamp="true"/>

         <Context path="" docBase="." debug="0" reloadable="true" crossContext="true"/>

</Host>

你可能感兴趣的:(java,tomcat,linux,Flash,idea)