So lets configure the Apache HTTPD
<VirtualHost *:80>
ServerName clientdomain
ProxyPass / ajp://localhost:8009/
</VirtualHost>
And Tomcat server.xml configuration:
<Host name="localhost" appBase="root"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Context
docBase="/var/lib/tomcat6/webapps/clientT5app"
path=""
reloadable="true"
/>
<Context path="/manager" debug="0" privileged="true" docBase="/var/lib/tomcat6/webapps/manager">
<ResourceLink name="users" global="UserDatabase" type="org.apache.catalina.UserDatabase"/>
</Context>
We need to change appBase to another folder (like /var/lib/tomcat6/root) or move clientT5app out of webapps folder in case appBase="webapps" as default to avoid double loadding the clientT5app.
The context manager is used to manage applications.
No comments:
Post a Comment