You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Mauri <la...@gmail.com> on 2010/07/15 20:48:47 UTC
[users@httpd] Custom ErrorDocument
Hi expert,
where I can insert the ErrorDocument directive in my ssl.conf virtualhost ?
this is my virtualhost directive
NameVirtualHost myserver:443
<VirtualHost myserver:443>
ServerName myserver
ProxyRequests off
ProxyPass / https://10.173.100.117:8443/
ProxyHTMLURLMap https://10.173.100.117:8443 /
<Location />
ProxyPassReverse https://10.173.100.117:8443/
ProxyHTMLEnable On
ProxyHTMLURLMap / /
RequestHeader unset Accept-Encoding
</Location>
..SSL Directive..
</VirtualHost>
if I insert this directive:
DocumentRoot /var/www/error
<Directory /var/www/error/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ErrorDocument 503 /test.html
this is the entry in my apache log (wrong):
ictservices_ssl_error_log:[Thu Jul 15 20:58:46 2010] [debug]
mod_proxy_http.c(56): proxy: HTTP: canonicalising URL //
10.173.100.117:8443/prova.html
ictservices_ssl_error_log:[Thu Jul 15 20:58:46 2010] [debug]
proxy_util.c(1488): [client 10.173.202.139] proxy: https: found worker
https://10.173.100.117:8443/ for https://10.173.100.117:8443/prova.html
ictservices_ssl_error_log:[Thu Jul 15 20:58:46 2010] [debug]
mod_proxy_http.c(1960): proxy: HTTP: serving URL
https://10.173.100.117:8443/prova.html
I want that if the backend application is down (https://10.173.100.117:8443/)
the proxy send to client the local file /var/www/error/test.html
many thanks for any sugget.
Cheers,
Mauri
Re: [users@httpd] Re: Custom ErrorDocument
Posted by Eric Covener <co...@gmail.com>.
On Fri, Jul 16, 2010 at 5:47 AM, Mauri <la...@gmail.com> wrote:
>
> one more information.
> If I write
> ErrorDocument 503 "messagge"
>
> it work fine, but If I write
> ErrorDocument 503 /test.html
> it don't work. for me this is the problem:
That's because you're proxying everything. Read the manual for the
ProxyPass syntax to exclude certain URLS.
--
Eric Covener
covener@gmail.com
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
[users@httpd] Re: Custom ErrorDocument
Posted by Mauri <la...@gmail.com>.
one more information.
If I write
ErrorDocument 503 "messagge"
it work fine, but If I write
ErrorDocument 503 /test.html
it don't work. for me this is the problem:
filelog_ssl_error_log:[Thu Jul 15 20:58:46 2010] [debug] proxy_util.c(1488):
[client 10.173.202.139] proxy: https: found worker
https://10.173.100.117:8443/ for
https://10.173.100.117:8443/test.html<https://10.173.100.117:8443/prova.html>
the file test.html is a local file in /var/www/error/test.html
Thanks for any suggest.
Cheers,
Mauri
2010/7/15 Mauri <la...@gmail.com>
>
> Hi expert,
> where I can insert the ErrorDocument directive in my ssl.conf virtualhost ?
> this is my virtualhost directive
>
> NameVirtualHost myserver:443
> <VirtualHost myserver:443>
> ServerName myserver
> ProxyRequests off
> ProxyPass / https://10.173.100.117:8443/
> ProxyHTMLURLMap https://10.173.100.117:8443 /
> <Location />
> ProxyPassReverse https://10.173.100.117:8443/
> ProxyHTMLEnable On
> ProxyHTMLURLMap / /
> RequestHeader unset Accept-Encoding
> </Location>
> ..SSL Directive..
> </VirtualHost>
>
> if I insert this directive:
>
> DocumentRoot /var/www/error
> <Directory /var/www/error/>
> Options Indexes FollowSymLinks MultiViews
> AllowOverride None
> Order allow,deny
> allow from all
> </Directory>
> ErrorDocument 503 /test.html
>
> this is the entry in my apache log (wrong):
> filelog_ssl_error_log:[Thu Jul 15 20:58:46 2010] [debug]
> mod_proxy_http.c(56): proxy: HTTP: canonicalising URL //
> 10.173.100.117:8443/test.html <http://10.173.100.117:8443/prova.html>
> filelog_ssl_error_log:[Thu Jul 15 20:58:46 2010] [debug]
> proxy_util.c(1488): [client 10.173.202.139] proxy: https: found worker
> https://10.173.100.117:8443/ for https://10.173.100.117:8443/test.html<https://10.173.100.117:8443/prova.html>
> filelog_ssl_error_log:[Thu Jul 15 20:58:46 2010] [debug]
> mod_proxy_http.c(1960): proxy: HTTP: serving URL
> https://10.173.100.117:8443/test.html<https://10.173.100.117:8443/prova.html>
>
> I want that if the backend application is down (
> https://10.173.100.117:8443/) the proxy send to client the local file
> /var/www/error/test.html
>
> many thanks for any sugget.
>
> Cheers,
> Mauri
>