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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > Order of errors

Reply
 
Thread Tools Display Modes
  #1  
Old 10-21-2011, 11:14 AM
Corey Corey is offline
Member
 
Join Date: Sep 2011
Posts: 15
Default Order of errors

Hi,

If I block an IP with deny in .htaccess it gives a 403 properly, however if the user requests a file that does not exist they receive a 404 instead of the 403. Is there a way to change the order the errors are evaluated in? I'd like a 403 to be displayed regardless of what file the user is requesting if they are blocked in the .htaccess

Thanks.
Reply With Quote
  #2  
Old 10-21-2011, 11:34 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,338
that's the way already is. iow, lsws first check whether the resource is allowed to access and gives 403 if not, then check whether the resource exists and gives 404 if not.
Reply With Quote
  #3  
Old 10-21-2011, 11:53 AM
Corey Corey is offline
Member
 
Join Date: Sep 2011
Posts: 15
Hello,

That is not what is happening... if I block my own IP via .htaccess I ONLY receive a 403 error if I request an existing file. If I request a file that does not exist I receive a 404 error.
Reply With Quote
  #4  
Old 10-21-2011, 12:14 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,338
to help troubleshoot, provide your lsws version and platform info as well as .htaccess settings.
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 05:24 AM.



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