I use Tomcat to host my web application and apache http server on top of it using a mod proxy for load balancing.
When my application throws a 404 or 500 error, I want to serve error pages via the Apache http server, not the tomcat server. This is because I serve all my static content via apache and do not want it to be part of the war. Is there any way to do this?
Specify the "ErrorDocument" directive in the virtualhost section of your apache configurator:
ErrorDocument 404 /path/to/my404page.html ErrorDocument 500 /path/to/my500page.html
, mod proxy, ProxyErrorOverride, apache .
Source: https://habr.com/ru/post/1762647/More articles:jQuery live () does not work with the manipulator - jqueryExecutable UNIX cc - cHow to use oauth in a FLOSS application, where we cannot store the secret key? - open-sourcehow to set element id using php dom? - xmlCan I change the language in Visual Studio 2008? - visual-studio-2008ΠΡΠΏΠΎΠ»Π½Π΅Π½Π½ΡΠΉ ΠΏΠ΅ΡΠ΅ΡΠ°ΡΠΊΠΈΠ²Π°Π½ΠΈΠ΅ΠΌ win32, ΡΠ΄Π΅Π»Π°Π½Π½ΡΠΉ Π±Π΅Π· ΠΈΠ·ΠΌΠ΅Π½Π΅Π½ΠΈΠΉ, Π½Π΅ ΠΌΠΎΠΆΠ΅Ρ ΠΏΠΎΠ»ΡΡΠΈΡΡ ΠΈΠ·ΠΌΠ΅Π½Π΅Π½ΠΈΠ΅ Π½Π΅Π΄Π΅ΠΉΡΡΠ²ΠΈΡΠ΅Π»ΡΠ½ΡΠΌ (ΡΠ°Π·ΡΠ΅ΠΆΠ΅Π½Π½ΡΠΉ ΠΊΡΡΠ³) ΠΊΡΡΡΠΎΡΠΎΠΌ - c++3.4.1 ΠΠΎΠΈΡΠΊ Π½Π΅ΠΊΠ²Π°Π»ΠΈΡΠΈΡΠΈΡΠΎΠ²Π°Π½Π½ΠΎΠ³ΠΎ ΠΈΠΌΠ΅Π½ΠΈ - c++ΡΠΊΠ²ΠΈΠ²Π°Π»Π΅Π½Ρ firebug Π² IE - debuggingHow to get crc / checksum file in asp.net - c #How to enable tooltips in Visual Studio - visual-studio-2008All Articles