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

Go Back   LiteSpeed Support Forums > External Applications > Apache Migration/Compatibility > ErrorDocument compatibility

Reply
 
Thread Tools Display Modes
  #1  
Old 05-04-2007, 02:47 PM
aww aww is offline
Senior Member
 
Join Date: May 2007
Posts: 237
Default ErrorDocument compatibility

I've found a (minor) errordocument compatibility problem.

Apache allows you define a simple text message for ErrorDocuments

ie.
ErrorDocument 404 "Not Found"
ErrorDocument 403 "Forbidden

I noticed litespeed complains about these in my htaccess
Quote:
NOTICE [/usr/local/apache/conf/httpd.conf:1131] Unsupported ErrorDocument URL: "Forbidden, must start with '/' or 'http'.
Reply With Quote
  #2  
Old 05-04-2007, 03:47 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
Yeah, that's one of the minor compatibility issue existing. Actually, LSWS can do that, just need to allow it during Apache configuration parsing phase. Will add that.

Thanks for pointing it out.
Reply With Quote
  #3  
Old 05-04-2007, 07:10 PM
aww aww is offline
Senior Member
 
Join Date: May 2007
Posts: 237
Slightly on the same subject, can the branding be turned off for the default error pages?

Apache let's you do this in the httpd.conf but litespeed doesn't seem to obey it.

ServerSignature Off
and
ServerTokens Min

Actually it might be obeying this now that I think about it. Apparently you can't turn off the tokens entirely.
Reply With Quote
  #4  
Old 05-05-2007, 12:52 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
We may remove those signatures in the future, you need to add custom error pages for now.
And there is nothing ashamed of being LiteSpeed.
Reply With Quote
  #5  
Old 05-05-2007, 10:48 PM
aww aww is offline
Senior Member
 
Join Date: May 2007
Posts: 237
Quote:
Originally Posted by mistwang View Post
And there is nothing ashamed of being LiteSpeed.
Not ashamed at all, infact told several people about it already.

The problem is evil hackers. Last month the normally excellent firewall we use on the server (CSF) had a vunerlability. We didn't find out about it for a few days and didn't know to upgrade. In that small time frame someone figured out we use it and was able to gain access. Had to rebuild the entire VPS for safety. Many hours wasted.

All it takes is one overlooked fault in LiteSpeed, and even if you fixed it within 24 hours, the evil hackers are constantly at play.

No server tag, more obscurity, makes it harder for them.
Reply With Quote
  #6  
Old 05-06-2007, 05:04 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
Hiding the server identity is available with our Enterprise edition.
Reply With Quote
  #7  
Old 05-07-2007, 04:21 AM
aww aww is offline
Senior Member
 
Join Date: May 2007
Posts: 237
While my logs are fixed in 3.1.1 I just remembered to test ErrorDocument 404 "Not Found"
and it still does not work.

I get a blank page after it pauses for a few seconds.
Reply With Quote
  #8  
Old 05-08-2007, 07:54 PM
aww aww is offline
Senior Member
 
Join Date: May 2007
Posts: 237
By the way, I thought I should report that wget lsws no longer works for me unless I --limit-rate=100000

Otherwise it stalls out somewhere along the way and never recovers. Only started that recently.

And as of my newest download of 3.1.1 tonight, ErrorDocument is still not working for me, it pauses for a few seconds and then gives a blank page.
Reply With Quote
  #9  
Old 05-08-2007, 08:18 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
It works for us, maybe try it in another .htaccess. "Options" override must be allowed.
Maybe something special in your .htaccess file, please send us your whole .htaccess for analysis.
Reply With Quote
  #10  
Old 05-09-2007, 01:52 AM
aww aww is offline
Senior Member
 
Join Date: May 2007
Posts: 237
Override is definitely allowed.

single line .htaccess on test account
Quote:
ErrorDocument 404 "missing"
example.com/blahblahblah-notrealurl

Browser stalls for a few seconds and then comes back to a blank page.

Oh and trying to do it this way

http://ipdaddress/~username/blahblah/
gives a standard litespeed 404 error page

on apache I believe it would be the errordocument specified

This is using the 3.1.1 downloaded 7 hours ago.

Last edited by aww; 05-09-2007 at 02:06 AM..
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 06:56 AM.



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