Tomcat虚拟主机设置

<Host name="www.b1.com"  appBase="D:\jsp_Tomcat\web\www.b1.com"
            unpackWARs="true" autoDeploy="true">

        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
               prefix="localhost_access_log." suffix=".txt"
               pattern="%h %l %u %t &quot;%r&quot; %s %b" />
			   <Context path="/news" docBase="D:\jsp_Tomcat\web\www.b1.com\news">

      </Host>
	  
	  <Host name="www.b2.com"  appBase="D:\jsp_Tomcat\web\www.b2.com"
            unpackWARs="true" autoDeploy="true">

        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
               prefix="localhost_access_log." suffix=".txt"
               pattern="%h %l %u %t &quot;%r&quot; %s %b" />

      </Host>
	  
	  <Host name="www.b3.com"  appBase="D:\jsp_Tomcat\web\www.b3.com"
            unpackWARs="true" autoDeploy="true">

        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
               prefix="localhost_access_log." suffix=".txt"
               pattern="%h %l %u %t &quot;%r&quot; %s %b" />

      </Host>
	  
	  <Host name="www.b4.com"  appBase="D:\jsp_Tomcat\web\www.b4.com"
            unpackWARs="true" autoDeploy="true">

        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
               prefix="localhost_access_log." suffix=".txt"
               pattern="%h %l %u %t &quot;%r&quot; %s %b" />

      </Host>

原文链接: Tomcat虚拟主机设置 版权所有,转载时请注明出处,违者必究。
注明出处格式:流沙团 ( https://gyarmy.com/post-44.html )

发表评论

0则评论给“Tomcat虚拟主机设置”