Hello,
Since Apache 2.4.26 (somewhen in 2012), the httpd webserver core supports the directives "<If>", "<ElseIf>" and "<Else>", to allow for easy handling of requests based on logical conditions, without using the RewriteEngine or any other modules. These directives are evaluated at request time, according to the Apache docs:
https://httpd.apache.org/docs/2.4/mod/core.html#if
While testing this with Litespeed, it appears that Litespeed silently ignores any lines containing these core directives when used with Apache configuration files (as we do on Plesk based servers).
Since it has been supported by the Apache core for about 10 years now, I think it would be a very nice and welcome addition to Litespeed as well. So, missing support for this feels like a bug to me but if it seems more like a feature request, please feel free to move this thread to the relevant forum...
In any case, I would suggest adding this to Litespeed, so we can use this to improve functionality on our Hosting environments.
With kind regards,
Hindrik Deelstra
Since Apache 2.4.26 (somewhen in 2012), the httpd webserver core supports the directives "<If>", "<ElseIf>" and "<Else>", to allow for easy handling of requests based on logical conditions, without using the RewriteEngine or any other modules. These directives are evaluated at request time, according to the Apache docs:
https://httpd.apache.org/docs/2.4/mod/core.html#if
While testing this with Litespeed, it appears that Litespeed silently ignores any lines containing these core directives when used with Apache configuration files (as we do on Plesk based servers).
Since it has been supported by the Apache core for about 10 years now, I think it would be a very nice and welcome addition to Litespeed as well. So, missing support for this feels like a bug to me but if it seems more like a feature request, please feel free to move this thread to the relevant forum...
In any case, I would suggest adding this to Litespeed, so we can use this to improve functionality on our Hosting environments.
With kind regards,
Hindrik Deelstra