Tomcat binding examples: server.conf file
satya - Friday, February 03, 2012 3:40:42 PM
Production what I have
<Service....>
<Connector port="80" address="your-ip" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />
<Engine name="Catalina" defaultHost="your-ip">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
<Host name="your-ip" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Alias>knowledgefolders.com</Alias>
<Alias>www.knowledgefolders.net</Alias>
<Alias>site2</Alias>
....
<Alias>siten</Alias>
<Context path="" docBase="d:/somepath/akc" debug="0"/>
<Context path="/akc" docBase="d:/somepath/akc" debug="0"/>
</Host>
</Engine>
</Service>
satya - Friday, February 03, 2012 3:44:38 PM
On localhost
<Service name="Catalina">
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
<Engine name="Catalina" defaultHost="localhost">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
<!-- Define the default virtual host
Note: XML Schema validation will not work with Xerces 2.2.
-->
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Context path="" docBase="c:/somepath/akc-sqlserver" debug="0"/>
<Context path="/akc" docBase="c:/somepath/akc-sqlserver" debug="0"/>
</Host>
</Engine>
</Service>