Apache Tomcat help

DeaconFrost

[H]F Junkie
Joined
Sep 6, 2007
Messages
11,582
One of our teams runs a site/product on Apache Tomcat 7. The server was set up quite some time ago, and only has one site, using the IP of the server. I'm planning to add a second IP to the server, running Windows 2012 R2, so that I may add a second URL and site.

I'm struggling mightily to figure out how to add the second site, bind it to an IP address, and set the content directory. I'm assuming there needs to be a .conf file edited somewhere, but I'm striking out in figuring out which one.

Any help would be appreciated.
 
/var/conf/server.xml at least on linux is where i'd be looking.

<Connector port="8080" protocol="HTTP/1.1"
address="192.168.0.1"
connectionTimeout="20000"
maxPostSize="2147483647"
redirectPort="8443" />
<Connector port="8080" protocol="HTTP/1.1"
address="192.168.0.2"
connectionTimeout="20000"
maxPostSize="2147483647"
redirectPort="8443" />



As far as content dir, it's using WARs or JARS im assuming, so it would unpack the app under tomcat7/webapps/appname.


<Host name="localhost" appBase="/c:/webapps2"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">


again above in server.xml

This is all from my days as *nix engineer, assuming windows should be similar.
 
Back
Top