I tried a few things and the only thing that worked was as below.
<Host name="www.myhostname.com" debug="5"
appBase="/home/perap/htdocs/perap" unpackWARs="true"
autoDeploy="true" xmlValidation="false"
xmlNamespaceAware="false">
<Context path="" docBase="/home/perap/htdocs/perap/ROOT"
debug="5" privileged="true"/>
</Host>
PLUS also changing the httpd.conf VirtualHost DocumentRoot
to also point to /home/perap/htdocs/perap/ROOT.
In my case, I had to keep the Context entry but a more "normal" webapp
probably would not need it.
Thanks for all the help. Wouldn't have gotten there without the response.
Mark Thomas wrote:
IT Desk wrote:
Here's the <host> entry in the Tomcat server.xml file
(Yes I know I should have a separate context xml file but this is the
way things already were when I started on this project):
<Host name="www.myhostname.com" debug="5"
appBase="/home/perap/htdocs/perap"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Context path="/" docBase="/home/perap/htdocs/perap" debug="5"
privileged="true"/>
</Host>
And there is the problem. appBase must not be the same as docBase.
This is the issue I referred to in my previous mail. To get the
behaviour your want you need move the contents of
/home/perap/htdocs/perap
to
/home/perap/htdocs/perap/ROOT
and change the host in your server.xml to:
<Host name="www.myhostname.com" debug="5"
appBase="/home/perap/htdocs/perap" unpackWARs="true"
autoDeploy="true" xmlValidation="false"
xmlNamespaceAware="false">
<Context path="/" docBase="/home/perap/htdocs/perap/ROOT"
debug="5" privileged="true"/>
</Host>
Mark
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]