修改tomcat虚拟主机配置
- [root@E myweb.com]# vi /etc/tomcat6/server.xml
- 在最下面<Host></Host>标签后面添加如下内容
- <!--myweb.com host config-->
- <Host name="www.myweb.com" appBase="webapps"
- unpackWARs="true" autoDeploy="true"
- xmlValidation="false" xmlNamespaceAware="false">
- <Context path="/" reloadable="true" docBase="myweb.com"/>
- <Alias>myweb.com</Alias>
- <!-- SingleSignOn valve, share authentication between web applications
- Documentation at: /docs/config/valve.html -->
- <!--
- <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
- -->
- <!-- Access log processes all example.
- Documentation at: /docs/config/valve.html -->
- <!--









