wf
06-05-2004, 09:45 PM
Hi all...
In server.xml I defined two virtual hosts... call them www.dog.com and www.cat.com. Web apps for dog reside in webapps/dog and for cat in webapps/cat. Actually, I only have one web app for each host. If I put a directory called app in the dog space, like webapps/dog/app, then Tomcat will automatically create a context for it. But then I have to enter www.dog.com/app to get to its index.html file. I just want to define it as a default app, so that www.dog.com maps to index.html of the default (and only) web app in the dog host space. Can anyone point me to info on this subject?
I noticed they don't recommend putting a context tag into server.xml for Tomcat 5. Instead, you're supposed to put a "context fragment", whatever that is, into conf/Catalina/www.dog.com. But couldn't find any examples of this, and whatever experiments I tried didn't work.
Thanks for any help, and thanks to Rimu for adding a forum!
In server.xml I defined two virtual hosts... call them www.dog.com and www.cat.com. Web apps for dog reside in webapps/dog and for cat in webapps/cat. Actually, I only have one web app for each host. If I put a directory called app in the dog space, like webapps/dog/app, then Tomcat will automatically create a context for it. But then I have to enter www.dog.com/app to get to its index.html file. I just want to define it as a default app, so that www.dog.com maps to index.html of the default (and only) web app in the dog host space. Can anyone point me to info on this subject?
I noticed they don't recommend putting a context tag into server.xml for Tomcat 5. Instead, you're supposed to put a "context fragment", whatever that is, into conf/Catalina/www.dog.com. But couldn't find any examples of this, and whatever experiments I tried didn't work.
Thanks for any help, and thanks to Rimu for adding a forum!