I currently have a reverse proxy setup in front of multiple web servers. I'm wanting to set custom error pages but am having issues. I am setting the errordocument at the reverse proxy. Is this the correct location top set it or do I set it on the server behind the reverse proxy?
conf on reverse proxy:
<VirtualHost *:80>
#
ServerName files.example.com
#
ProxyPreserveHost On
ProxyRequests On
ProxyPass /error-documents/ !
ProxyPass / http://10.100.100.22/
ProxyPassReverse / http://10.100.100.22/
ProxyErrorOverride Off
RewriteEngine On
ErrorDocument 503 /error-documents/503.html
</VirtualHost>
The html file exists and has appropriate permission on /var/www/error-documents/ on the reverse proxy server.
I'm still getting the default 503 error page though. Any suggestions?
conf on reverse proxy:
<VirtualHost *:80>
#
ServerName files.example.com
#
ProxyPreserveHost On
ProxyRequests On
ProxyPass /error-documents/ !
ProxyPass / http://10.100.100.22/
ProxyPassReverse / http://10.100.100.22/
ProxyErrorOverride Off
RewriteEngine On
ErrorDocument 503 /error-documents/503.html
</VirtualHost>
The html file exists and has appropriate permission on /var/www/error-documents/ on the reverse proxy server.
I'm still getting the default 503 error page though. Any suggestions?