Knowledgebase

Portal Home > Knowledgebase > Articles Database > Litespeed only htaccess conditional - Possible?


Litespeed only htaccess conditional - Possible?




Posted by ROMSDJDJ, 07-04-2012, 01:24 AM
Is there a way to create a conditional that only litespeed will execute and apache will not? For example: I need this functionality because litespeed does a piss poor job of supporting htaccess files (such as not supporting the full mod_negotiation even though it return true for mod_negotiation checks)

Posted by foobic, 07-04-2012, 01:45 AM
Perhaps try a "RewriteCond %{SERVER_SOFTWARE} LiteSpeed" ?

Posted by ROMSDJDJ, 07-04-2012, 01:51 AM
The problem is not in the rewrite rules. For example, I want to do this: #configure mod deflate here For apache this does not need to be done because we use content negotiation / type maps, so it does not need the mod_deflate stuff.

Posted by RateLobby, 07-04-2012, 06:01 AM
Does LiteSpeed support the just plain "if" directive? Try with foobic's recommendation: # ...

Posted by foobic, 07-04-2012, 06:32 AM
Interesting - I hadn't heard of that one. Looks like it's new in Apache 2.4. If Litespeed doesn't support it the older might also do the job, I guess.

Posted by khunj, 07-04-2012, 08:09 AM
That is perfect that way: Apache will not follow that instruction because there is no 'mod_litespeed.c' and, because it does not use Apache's module, Litespeed will ignore the conditionional 'if' and will follow the instruction.

Posted by ROMSDJDJ, 07-08-2012, 08:06 PM
Litespeed does not support this and we also need to support older apache, unfortunately

Posted by JustinAY, 07-14-2012, 02:10 AM
Looks like khunj's solution will work: http://www.litespeedtech.com/support...ead.php?t=6074 Last edited by JustinAY; 07-14-2012 at 02:17 AM. Reason: added litespeed forum URL



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Apache Status (Views: 586)
Bind query Limitation (Views: 592)


Language:

Contact us