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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Bug Reports > Rewrites fail when using user directory in URL

Reply
 
Thread Tools Display Modes
  #1  
Old 08-29-2012, 11:08 PM
jp0p jp0p is offline
New Member
 
Join Date: Mar 2011
Posts: 4
Exclamation Rewrites fail when using user directory in URL

Hi,

LSWS - Enterprise 4.1.13 on CENTOS 5.8 i686

I tried enabling rewrite logging and nothing showed up in the logs.
The problem does not happen with LSWS 4.1.12 and does not happen when switching to Apache

Rewrites fail when the user's directory is being used to access the page.

Here are example URLs that fail

http://123.123.123.123/~someuser/par...ge/child-page/
-- loads the page found and /parent-page/

http://123.123.123.123/~someuser/parent-page/child-page
-- Generates a 403 error

(the same errors occur when using the host name with user's directory:
http://host.server.com/~someuser/....



Rewrite Rules:

Code:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?page=$1 [QSA,L]
When using rewrite rules to add a trailing slash where there is none, a 404 not found error is found instead of a 403.

The rewrite rules have been ok on LSWS for the last couple years for 100 + accounts. The rewrite rules work on all Apache 2.x versions.

I switched to lsws 4.1.12 in the meantime.

Many Thanks!
__________________
------------------------
Litespeed Web Server Enterprise v4.0.20
Reply With Quote
  #2  
Old 08-30-2012, 04:27 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,390
Quote:
Originally Posted by jp0p View Post
Hi,

LSWS - Enterprise 4.1.13 on CENTOS 5.8 i686

I tried enabling rewrite logging and nothing showed up in the logs.
...
make sure the followings:

1. LSWS log level (Admin Console => Configuration => Server => Log) set to INFO or DEBUG.
2. "RewriteLogLevel 9" in httpd.conf.

Last edited by webizen; 08-30-2012 at 04:32 PM..
Reply With Quote
  #3  
Old 08-31-2012, 08:59 AM
jp0p jp0p is offline
New Member
 
Join Date: Mar 2011
Posts: 4
I did both of those before submitting my post: Log level is Info and RewriteLogLevel 9 in httpd.conf.
__________________
------------------------
Litespeed Web Server Enterprise v4.0.20
Reply With Quote
  #4  
Old 08-31-2012, 10:31 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,390
Pls do force reinstall and see if any difference.
Reply With Quote
  #5  
Old 09-05-2012, 12:56 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
We need debug log with full debug logging enabled in order to analyze what happened.
if you want to have our staff take a look on your server, please contact bug@litespeed... with temp root access to that server.
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:46 AM.



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