-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 李征,
李征 wrote: > i use apache with tomcat. > i don't want tomcat to generate its default error page when a error happens. > instead, i want to show my error page which i set in the apache conf file. > > i know that i can use <error-page> to do this, but i don't want to do it > twice -- both apache and tomcat. You can just use ErrorDocument within a <Location> section in your httpd.conf. I do this for errors like 403 and 500, so I'd imagine it would work with other error codes as well. I believe Apache httpd simply ignores the body of the TC response and replaces it with its own. Hmm... I see that I /have/ configured the error pages in both Apache httpd /and/ Tomcat, so I'm not sure which of the configurations is really active. Honestly, I don't see what the big deal is about double-configuring these error pages. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkj8i8gACgkQ9CaO5/Lv0PDKxACfdBMxP7COYYAZTLiCVBD6C3kN qycAoLd/8UL02Locmbp/dielGM+oZy7v =t5pi -----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]