[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Tomcat and virtual hosts

Hi fellow BOFHs,

To get apache and tomcat servering a webapp as the document root on a
virtual host, you need to add something like the following to the

   <Host name="jackal.pisoftware.com" address="">
     <Context path="" docBase="/usr/share/tomcat/webapps/jackal" debug="0" />

Then, ensure that the ApacheConfig section looks like:

   <ApacheConfig forwardAll="true" noRoot="false" />

Restart tomcat and apache, and all should be good.

|Brad Marshall                    |           Plugged In Software|
|Senior Systems Administrator     |     http://www.pisoftware.com|
|mailto:bmarshal@pisoftware.com   |  GPG Key Id: 47951BD0 / 1024b|
 Fingerprint:  BAE3 4794 E627 2EAF 7EC0  4763 7884 4BE8 4795 1BD0