[us...@httpd] Re: Custom ErrorDocument

2010-07-16 Thread Mauri
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.htmlhttps://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 lai...@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  /  /
 RequestHeaderunset  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.htmlhttps://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.htmlhttps://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: [us...@httpd] Re: Custom ErrorDocument

2010-07-16 Thread Eric Covener
On Fri, Jul 16, 2010 at 5:47 AM, Mauri lai...@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
cove...@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-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org