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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Bug Reports > RedirectMatch gone instruction

Reply
 
Thread Tools Display Modes
  #1  
Old 02-17-2009, 05:00 PM
[QT]bender [QT]bender is offline
Member
 
Join Date: May 2008
Posts: 16
Question RedirectMatch gone instruction

The following rules does not work at Litespeed:

RedirectMatch gone ^.*\.(sql|log|conf)$
RedirectMatch gone VERSION.*

Is it a bug or should we use different constructions(as far as I know these rules works just fine in the Apache)?
Reply With Quote
  #2  
Old 02-17-2009, 06:01 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Where did you put those configuration?
It works in a .htaccess in our lab.
Need more detail to reproduce the problem.
Reply With Quote
  #3  
Old 02-18-2009, 03:19 AM
kas kas is offline
Member
 
Join Date: Dec 2008
Posts: 18
Quote:
Originally Posted by mistwang View Post
Where did you put those configuration?
It works in a .htaccess in our lab.
Need more detail to reproduce the problem.
As it was mentioned by bender there is a bug. Redirect gone VERSION.* and RedirectMatch gone VERSION.* expressions in the .htaccess causes infinite redirect loop.

I have commented these rules out and now it is ok. But we need a solution.
Reply With Quote
  #4  
Old 02-18-2009, 04:22 AM
kas kas is offline
Member
 
Join Date: Dec 2008
Posts: 18
Here is the Web Server error log:

Quote:
2009-02-17 10:13:11.845 [INFO] [HTAccess] Updating configuration from [/%PATH%/httpdocs/.htaccess]
2009-02-17 10:13:11.845 [WARN] [HTAccess] [/%PATH%/httpdocs/.htaccess:32] Redirect URL [/upgrade] does not fall inside current context [/%PATH%/httpdocs/], ignore!
2009-02-17 10:13:11.845 [WARN] [HTAccess] [/%PATH%/httpdocs/.htaccess:35] Redirect URL [/skin1_original] does not fall inside current context [/%PATH%/httpdocs/], ignore!
2009-02-17 10:13:11.845 [WARN] [HTAccess] [//%PATH%/httpdocs/.htaccess:38] Redirect URL [/sql] does not fall inside current context [/%PATH%/httpdocs/], ignore!
2009-02-17 10:13:11.845 [WARN] [HTAccess] [/%PATH%/httpdocs/.htaccess:41] Redirect URL [/shipping] does not fall inside current context [/%PATH%/httpdocs/], ignore!
2009-02-17 10:13:11.845 [WARN] [HTAccess] [/%PATH%/httpdocs/.htaccess:44] Redirect URL [/.pgp] does not fall inside current context [/%PATH%/httpdocs/], ignore!
2009-02-17 10:13:11.845 [WARN] [HTAccess] [/%PATH%/httpdocs/.htaccess:45] Redirect URL [/.pgp.def] does not fall inside current context [/%PATH%/httpdocs/], ignore!
2009-02-17 10:13:11.845 [WARN] [HTAccess] [/%PATH%/httpdocs/.htaccess:48] Redirect URL [/tmp] does not fall inside current context [/%PATH%/httpdocs/], ignore!
2009-02-17 10:13:11.845 [WARN] [HTAccess] [/%PATH%/httpdocs/.htaccess:49] Redirect URL [/var] does not fall inside current context [/%PATH%/httpdocs/], ignore!
2009-02-17 10:13:11.845 [WARN] [HTAccess] [/%PATH%/httpdocs/.htaccess:54] Redirect URL [/shop] does not fall inside current context [/%PATH%/httpdocs/], ignore!
I have replaced the actual server path with /%PATH%/.

And here is some rules from the .htaccess:

Quote:
RedirectMatch 301 VERSION.*
RedirectMatch 301 COPYRIGHT.*
RedirectMatch 301 INSTALL.*
RedirectMatch 301 NEW.*
RedirectMatch 301 README.*
RedirectMatch 301 UPGRADE.*
Reply With Quote
  #5  
Old 02-18-2009, 09:19 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Please send the whole .htaccess file to bug (at) litespeed ... along with the request URL causing the infinite redirect loop.
Reply With Quote
  #6  
Old 02-18-2009, 10:20 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Quote:
RedirectMatch 301 VERSION.*
What should this directive do?
To me, it should have no effect as there is no target URL specified.
Reply With Quote
  #7  
Old 02-18-2009, 02:46 PM
kas kas is offline
Member
 
Join Date: Dec 2008
Posts: 18
Quote:
Originally Posted by mistwang View Post
What should this directive do?
To me, it should have no effect as there is no target URL specified.
Never mind.

I have found the issue. The redirect loop was caused by the following configuration file:

/etc/httpd/conf.d/zzz_php_openbasedir.conf:
Quote:
<DirectoryMatch "^/var/www/vhosts/(.*)/httpdocs">
php_admin_value open_basedir none
</DirectoryMatch>
I had to comment out the DirectoryMatch braces and currently our server works fine.

So in the result is:

/etc/httpd/conf.d/zzz_php_openbasedir.conf:
Quote:
#<DirectoryMatch "^/var/www/vhosts/(.*)/httpdocs">
php_admin_value open_basedir none
#</DirectoryMatch>
Please, let me know the cause of this issue. Your attention is appreciated.
Reply With Quote
  #8  
Old 02-19-2009, 05:46 AM
kas kas is offline
Member
 
Join Date: Dec 2008
Posts: 18
Any update?

We need a solution and very unhappy with this situation. And as an addition I want to mention that construction does not work at all:

Quote:
#<DirectoryMatch "^/var/www/vhosts/(.*)/httpdocs">
php_admin_value open_basedir none
#</DirectoryMatch>
Looking forward to your reply.
Reply With Quote
  #9  
Old 02-19-2009, 08:12 AM
kas kas is offline
Member
 
Join Date: Dec 2008
Posts: 18
I have been waiting for at least 12 hours and I haven't got any response from you guys.

We have a lot of complaint from our customers! It is very disappointing thing!
Reply With Quote
  #10  
Old 02-19-2009, 08:20 AM
kas kas is offline
Member
 
Join Date: Dec 2008
Posts: 18
An as addition I want to say that we are extremely loosing our sales!

Currently we are considering an opportunity to choose another Web Server solution because of huge delays and troubles. I wonder that a simple configuration construction causes a huge problems!
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 03:05 AM.



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