Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #5381

Re: Apache 500 ErrorDocument not working

From The Natural Philosopher <tnp@invalid.invalid>
Newsgroups comp.os.linux.misc
Subject Re: Apache 500 ErrorDocument not working
Date 2012-05-21 18:58 +0100
Organization albasani.net
Message-ID <jpdvoa$6i2$1@news.albasani.net> (permalink)
References <7ae8af48-b1cc-4d86-9484-c96978313157@p27g2000vbl.googlegroups.com>

Show all headers | View raw


ian diddams wrote:
> Apache 2.2.22, centos 5.8.
> 
> I have the following in a virtual server directive:
> 
> ..
> <Directory "/www/jboss/docs/">
>      Options Indexes FollowSymLinks
>      AllowOverride All AuthConfig FileInfo
>      Order allow,deny
>      Allow from all
>  </Directory>
> ErrorDocument 500 /www/jboss/docs/general_maintenance_page.html
> ...
> 
> 
> but while I can see in firefox using Httpfox that that apache does see
> a 500 error, it doesn;t then act on this ErrorDocument directive  (the
> file does exist :-).
> 
> any ideas?
> 
Not sure, but I think that the file path is relative to *apaches* root 
directory so try without the /www bit


Yup
http://httpd.apache.org/docs/2.0/mod/core.html

URLs can begin with a slash (/) for local web-paths (relative to the 
*DocumentRoot*), or be a full URL which the client can resolve. 
Alternatively, a message can be provided to be displayed by the browser. 
Examples:

ErrorDocument 500 http://foo.example.com/cgi-bin/tester
ErrorDocument 404 /cgi-bin/bad_urls.pl
ErrorDocument 401 /subscription_info.html
ErrorDocument 403 "Sorry can't allow you access today"


> cheers

> 
> ian


-- 
To people who know nothing, anything is possible.
To people who know too much, it is a sad fact
that they know how little is really possible -
and how hard it is to achieve it.

Back to comp.os.linux.misc | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Apache 500 ErrorDocument not working ian diddams <iandiddamsorg@googlemail.com> - 2012-05-21 07:56 -0700
  Re: Apache 500 ErrorDocument not working The Natural Philosopher <tnp@invalid.invalid> - 2012-05-21 18:58 +0100
    Re: Apache 500 ErrorDocument not working ian diddams <iandiddamsorg@googlemail.com> - 2012-05-21 11:25 -0700
      Re: Apache 500 ErrorDocument not working ian diddams <iandiddamsorg@googlemail.com> - 2012-05-21 11:38 -0700
      Re: Apache 500 ErrorDocument not working ian diddams <iandiddamsorg@googlemail.com> - 2012-05-21 11:42 -0700
      Re: Apache 500 ErrorDocument not working ian diddams <iandiddamsorg@googlemail.com> - 2012-05-21 12:05 -0700
        Re: Apache 500 ErrorDocument not working Richard Kettlewell <rjk@greenend.org.uk> - 2012-05-21 21:46 +0100
          Re: Apache 500 ErrorDocument not working The Natural Philosopher <tnp@invalid.invalid> - 2012-05-21 22:50 +0100
        Re: Apache 500 ErrorDocument not working Bill Marcum <bill@lat.localnet> - 2012-05-21 17:10 -0400
      Re: Apache 500 ErrorDocument not working Eli the Bearded <*@eli.users.panix.com> - 2012-05-22 05:11 +0000

csiph-web