tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Boughton" <bought...@gmail.com>
Subject Re: full path of 404 file
Date Sun, 02 Sep 2007 15:17:41 GMT
Ok, tried using that configuration, but I'm still getting the 405 method not
supported error for any jsp file.

Does the fact that it is apparently reaching the right directory now mean
that this is more likely to be a new problem with web.xml rather than
server.xml?


Thanks,

Peter

On 9/2/07, Mark Thomas <markt@apache.org> wrote:
>
> Peter Boughton wrote:
> > Ooops.
> > This is what I currently have:
> > <Host name="localhost" appBase="webapps"/>
> > <Host name="mydomain.com" appBase="/home/user0/public_html">
> >     <Alias>www.mydomain.com</Alias>
> >     <Context path="" docBase="/home/user0/public_html"
> reloadable="true"/>
> > </Host>
> >
> > What do I need to change so that mydomain.com/whatever will load
> > /home/user0/public_html/whatever ?
>
> I would use:
> <Host name="localhost" appBase="webapps"/>
> <Host name="mydomain.com" appBase="/home/user0/webapps">
>     <Alias>www.mydomain.com</Alias>
> </Host>
>
> and not define any contexts in server.xml
>
> Contents for the root web application would then be placed in
> /home/user0/webapps/ROOT
>
> context for the foobar context in
> /home/user0/webapps/foobar
>
> etc
>
> Mark
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


-- 
\ \
Peter Boughton
blog.bpsite.net
/ /

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message