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 Sat, 01 Sep 2007 18:50:56 GMT
Thanks for the suggestion. I tried access logging, but it's only listing the
"/index.jsp", not the full path.

Was using this page as reference:
http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html#Access%20Log%20Valve

And put this in the appropriate Host section of server.xml
<Valve className="org.apache.catalina.valves.AccessLogValve"
         directory="logs"  prefix="domain.com_access_log." suffix=".txt"
         pattern="%t %m %a %A %h %H %p %q %s %U %v %D"
resolveHosts="false"/>

Are there any other patterns that I'm missing?

I'll see if I can get a custom 404 working.

Thanks,

Peter

On 9/1/07, Hassan Schroeder <hassan.schroeder@gmail.com> wrote:
>
> On 9/1/07, Peter Boughton <boughtonp@gmail.com> wrote:
>
> > How do I find the full filename Tomcat is looking for when producing the
> > 404?
>
> You could turn on access logging, or you could set up a custom
> 404 page to return whatever you think pertinent.
>
> Of course, if the system doesn't find your custom 404, you're back
> to access logging, so ... :-)
>
> HTH,
> --
> Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
>
> ---------------------------------------------------------------------
> 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