I have been trying to create a virtual host with tomcat 5.0.28 to no avail. I have read all the docs. read the Wiki. and still no joy.

I must be missing something very fundamental and obvious to long time users of tomcat that is not obvious to me.

I was hoping to leave up the manager and admin page and then have the server respond to a dns name for my reall web app. Am I completely naive?

I tried the following:

http://wiki.apache.org/tomcat/CreateVirtualHosts?action=diff

Which is:
0. create ${catalina.home}/www/appBase , ${catalina.home}/www/deploy, and ${catalina.home}/conf/Catalina/www.myhostname.com

1. add a host entry in the server.xml file

  <Host appBase="www/appBase" name="www.myhostname.com"/>

2. Create the the following file under conf/Catalina/www.myhostname.com/ROOT.xml

<?xml version="1.0" encoding="UTF-8"?>
<Context
    path="/"
    docBase="www/deploy/mywebapp.war"
    reloadable="true" antiJARLocking="true">
</Context>

Add any parameters specific to this hosts webapp to this context file

3. put your war file in ${catalina.home}/www/deploy

When tomcat starts, it finds the host entry, then looks for any context files and will start any apps with a context
______________________-

I tried this from http://www.straker.co.nz/shadoblog/index.cfm?mode=entry&entry=381058E3-E855-60B6-D7E9C4B07755BEBA

<Host name="127.0.0.3" debug="0" appBase="webapps/shadomx7" unpackWARs="true" autoDeploy="true">
<Alias>rhyswilliams</Alias>
<Context path="" docBase="" debug="1"/>

<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="home_access_log." suffix=".txt"
pattern="common" resolveHosts="false"/>
</Host>

Of course changing the names to fit my app.

Still no joy.

Does anybody have an idea what a newbie is doing wrong?

Thanks,
J. Case




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to