-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Eric,

Eric B. wrote:
| "Caldarale, Charles R" <[EMAIL PROTECTED]> wrote in message
|
news:[EMAIL PROTECTED]
|>> Subject: Custom 404 for non-existant contexts?
|>>
|>> Is there a way to create a custom 404 error page for Tomcat
|>> for non-existant context paths?
|
|> What happens if you declare a custom error page for the ROOT (default)
|> webapp?
|
| Yeah - that's pretty much the only thing I managed to figure out.  I
updated
| the conf/web.xml file to include
|    <error-page>
|       <error-code>503</error-code>
|       <location>/error/maintenance.html</location>
|     </error-page>

Note that you have modified the default web.xml for all webapps, and not
the ROOT webapp. This may have unintended consequences for other web
applications.

| and put the /error/maintenance.html in the ROOT directory.

If you have a ROOT directory, why not use ROOT/WEB-INF/web.xml instead
of hacking the site-wide defaults?

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkeqP4kACgkQ9CaO5/Lv0PDiegCfd31lEnt3hmfoV2oxBAgKAOPv
idMAn1MpbGilhVIDY86VC2dszx36ncvQ
=kjW0
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to