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
  #11  
Old 02-19-2009, 09:13 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
LiteSpeed pre-compile <location...> <Directory...> directives, this <directoryMatch ...> directive is intended to match document root directory of all web sites, so it will match all requests and causes other "...Match" directives being ignored as LiteSpeed always use the first match.

The solution is to treat this as a special case in LiteSpeed.

Are you using plesk? Which version?
Does /etc/httpd/conf.d/zzz_php_openbasedir.conf belong to the default template? or added manually?

Does your patch to <DirectoryMatch...> configuration work or not?
Reply With Quote
  #12  
Old 02-19-2009, 02:40 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
The latest 4.0rc1 build should be able to take care of the <DirectoryMatch...> configuration.
Reply With Quote
  #13  
Old 02-20-2009, 04:19 AM
[QT]bender [QT]bender is offline
Member
 
Join Date: May 2008
Posts: 16
Quote:
Originally Posted by mistwang View Post
LiteSpeed pre-compile <location...> <Directory...> directives, this <directoryMatch ...> directive is intended to match document root directory of all web sites, so it will match all requests and causes other "...Match" directives being ignored as LiteSpeed always use the first match.

The solution is to treat this as a special case in LiteSpeed.

Are you using plesk? Which version?
Does /etc/httpd/conf.d/zzz_php_openbasedir.conf belong to the default template? or added manually?

Does your patch to <DirectoryMatch...> configuration work or not?
Configuration file '/etc/httpd/conf.d/zzz_php_openbasedir.conf' was created manually to disable 'open_basedir'. Yes we have using Plesk(different version of branch 8).

Yes, these configuration lines works, but if someone use RedirectMatch in his webroot he'll receive Internal server error.
Reply With Quote
  #14  
Old 02-20-2009, 05:56 PM
kas kas is offline
Member
 
Join Date: Dec 2008
Posts: 18
Quote:
Originally Posted by [QT]bender View Post
Configuration file '/etc/httpd/conf.d/zzz_php_openbasedir.conf' was created manually to disable 'open_basedir'. Yes we have using Plesk(different version of branch 8).

Yes, these configuration lines works, but if someone use RedirectMatch in his webroot he'll receive Internal server error.
It causes a permanent redirection with adding two slashes to all URLs except matched files by the Redirect and RedirectMatch directives.

I have not seen the 'Internal Server Error'. Please, hurry up with the fix or any solution.
Reply With Quote
  #15  
Old 02-20-2009, 09:56 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
fix is in latest 4.0rc1 build.
Reply With Quote
  #16  
Old 02-25-2009, 07:12 AM
kas kas is offline
Member
 
Join Date: Dec 2008
Posts: 18
Thank you for the reply. I have another one question. Is there any way to set the separate php.ini file for each user?

For example:
We have the alternative php.ini file in the conf directory of the domain, like this:

[09:07:08][root@sg:/var/www/vhosts/somedomain/conf]# ls -la /var/www/vhosts/somedomain/conf/php.ini
-rw-r--r-- 1 root root 39455 Feb 25 09:00 /var/www/vhosts/somedomain/conf/php.ini

How to force litespeed to use this php.ini file?

Looking forward to your reply.
Reply With Quote
  #17  
Old 02-28-2009, 06:40 AM
kas kas is offline
Member
 
Join Date: Dec 2008
Posts: 18
Where are you, guys? I've waited for your reply a least 2 days and got no answer from you.

Could you, please, answer my question?

I realy need a solution.
Reply With Quote
  #18  
Old 02-28-2009, 07:20 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
it is not possible when LSWS read Apache httpd.conf.
Only when you using LSWS vhost template you can do that.
Reply With Quote
  #19  
Old 03-25-2009, 05:19 AM
kas kas is offline
Member
 
Join Date: Dec 2008
Posts: 18
Quote:
Originally Posted by mistwang View Post
fix is in latest 4.0rc1 build.
This was not fixed even in 4.0 Ent.

Please, help.
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 07:30 PM.



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