httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mauri <lai...@gmail.com>
Subject [users@httpd] Re: Custom ErrorDocument
Date Fri, 16 Jul 2010 09:47:25 GMT
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 <lain80@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
>

Mime
View raw message