LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Bug Reports > Error pages don't double fault

Reply
 
Thread Tools Display Modes
  #1  
Old 10-19-2004, 03:24 PM
satang satang is offline
Member
 
Join Date: Jun 2004
Location: Wellington, NZ
Posts: 13
Default Error pages don't double fault

Hi there,

If you have a 404 error page that is set to an external server, and the external server is down, when you go to an invalid URL you get the internal/default 404 message, rather than the page configured as the 503 Gateway Not Connected message.
Reply With Quote
  #2  
Old 10-19-2004, 04:15 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Thank you for the bug report.

I am not exactly sure what the problem is,

If it is an absolute URL pointing to an external web server, the request will be redirected to that server via 3xx redirect response, if the external server is down, the request will fail.

If it is a URL that will be handled by external application (CGI/fast CGI/Proxy), then the external application will be invoked, if it failed, status code 503 will be returned probably.

If it is a URL pointing to a non-existing resource on the same server (that will result in 404 code), the built-in 404 error page will be returned.

Please let me know the exact scenario in your case and your expectation.

Thanks,
George
Reply With Quote
  #3  
Old 10-19-2004, 06:03 PM
satang satang is offline
Member
 
Join Date: Jun 2004
Location: Wellington, NZ
Posts: 13
Quote:
Originally Posted by mistwang
If it is a URL that will be handled by external application (CGI/fast CGI/Proxy), then the external application will be invoked, if it failed, status code 503 will be returned probably.
That doesn't seem to be happening. I stop the external (FastCGI in
this case) application, and it falls straight back to the built-in 404.
Reply With Quote
  #4  
Old 10-19-2004, 08:30 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
The web server will use the default error page if it detects the external application is unreacheable right away. I think it is better to return 404 than 503. If possible, let the web server manage the Fast CGI application, those kind of external application error could be recovered automatically. :-)
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 04:07 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.