Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Setting up Tomcat to have Virtual Host

843842Jun 6 2010 — edited Jun 7 2010
So I have added the following to my server.xml file
:
<host name="domain.com" appBase="www" unpackWARs="true" autoDeploy="true">
<context path="" docBase="/var/sites/domain.com" debug="0" reloadable="true"/>
</host>
The actual path to this is:
/var/sites/domain.com/www
Why isn't this working? I tried variations, but none is working and most of the time I get a 404 error.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 5 2010
Added on Jun 6 2010
3 comments
144 views