On Tue, 2007-04-17 at 10:37 +0200, Boyle Owen wrote:
> > -----Original Message-----
> > From: Tom Haddon [mailto:[EMAIL PROTECTED] 
> > Sent: Tuesday, April 17, 2007 10:16 AM
> > To: users@httpd.apache.org
> > Subject: [EMAIL PROTECTED] 500 error page not showing?
> > 
> > Hi Folks,
> > 
> > I believe I have an issue with a custom 500 error page not showing. I
> > can simulate the error (or rather, cause the error) by stopping my
> > database server which then produces an "Operational Error" page. If I
> > look in my apache access logs I see an entry like this:
> > 
> > 91.84.7.17 - - [16/Apr/2007:13:16:15 +0100] "GET / HTTP/1.1" 
> > 500 107 "-"
> > "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20061201
> > Firefox/2.0.0.3 (Ubuntu-feisty)"
> > 
> > >From what I can see this is showing that a 500 error is 
> > being recorded.
> > Interestingly I get nothing in the error log. In my apache config I
> > have:
> > 
> > ErrorDocument 500 /500.html
> > 
> > But the document isn't being shown, instead just the plain 
> > "Operational
> > Error" page. 
> 
> How is your database server accessed by the webserver?
> 
> If it's running as an application that apache accesses directly (eg, CGI
> or similar executes DB queries) then a DB error should cause the script
> to fail and a "real" 500.
> 
> However, if the DB is an HTTP-aware back-end and is accessed via
> mod_proxy then the 500 is generated in the DB server and is simply
> passed on by apache. So it's not a 500 in apache, hence no error log. I
> suspect the latter since you mention an "Operational Error" page that,
> presumably, comes from the DB server.

Thanks - that makes sense. I think you're right that the DB error isn't
registering as an Apache error because Apache isn't connecting directly,
it's an application issue.

> 
> > 
> > If I shut down my app servers, I can simulate/cause an 502 error fine
> > and the 502 error page I've created displays fine, and I get a message
> > like this in the error log:
> > 
> > [Tue Apr 17 07:45:06 2007] [error] (111)Connection refused: 
> > proxy: HTTP:
> > attempt to connect to 127.0.0.1:9999 (localhost) failed
> 
> Sure - apache can't connect to the DB so it is apache that has to report
> back to the client. Hence error logging.
> 
> > 
> > Can anyone enlighten me?
> 
> Did I?

Absolutely.

Thanks, Tom

> 
> Rgds,
> Owen Boyle
> Disclaimer: Any disclaimer attached to this message may be ignored. 
> 
> > 
> > Thanks, Tom
> > 
> > -- 
> > 
> > 
> > ----------------------------------
> > Tom Haddon
> > mailto:[EMAIL PROTECTED]
> > m +1.415.871.4180
> > www.greenleaftech.net
> > 
> > 
> > ---------------------------------------------------------------------
> > 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: [EMAIL PROTECTED]
> >    "   from the digest: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>  
> 
> This message is for the named person's use only. It may contain confidential, 
> proprietary or legally privileged information. No confidentiality or 
> privilege is waived or lost by any mistransmission. If you receive this 
> message in error, please notify the sender urgently and then immediately 
> delete the message and any copies of it from your system. Please also 
> immediately destroy any hardcopies of the message. You must not, directly or 
> indirectly, use, disclose, distribute, print, or copy any part of this 
> message if you are not the intended recipient. The sender's company reserves 
> the right to monitor all e-mail communications through their networks. Any 
> views expressed in this message are those of the individual sender, except 
> where the message states otherwise and the sender is authorised to state them 
> to be the views of the sender's company.
> 
> ---------------------------------------------------------------------
> 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: [EMAIL PROTECTED]
>    "   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 


----------------------------------
Tom Haddon
mailto:[EMAIL PROTECTED]
m +1.415.871.4180
www.greenleaftech.net


---------------------------------------------------------------------
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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to