This does not work since the beginning.
In theory, you may try to verify GeoIP match also via enviroement variables,
if you have a working standard LSWS+GeoIP setup already.
( phpinfo -> _SERVER["GEOIP_COUNTRY_CODE"] to verify )
Server should pass env variables to mod_security related code...
I did that.
Rewrite debug showed up in /var/log/httpd/domain/domain.com.error.log.
The case is that if there are any rewrite rules placed by the user in
/home/username/domains/domain.com/public_html/.htaccess,
our rules placed in /home/username/.htaccess are not beeing taken into...
I did what you asked and it showed me nothing realted to that particular rewrite rule.
AFAIR on DirectAdmin based servers LSWS was accepting rewrite rules only in two places:
/home/username/.htaccess
and
/home/username/domains/domain.com/public_html/.htaccess
Nowhere in between.
AFAIS the...
Yap. That's exactly what I wanted to say, but frankly I cannot predict now
during which LSWS version upgrade this functionality was lost.
On one server running till now with LSWS 4.2 everything is fine.
On 4.2.3 it is not. If it's working on 4.2.1 or 4.2.2 I can't say.
I'd rather not to try...
Hi,
We have something like this in every homedir:
cat /home/test/.htaccess
#
RewriteEngine On
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} (XX|YY|ZZ) [NC]
RewriteRule (.*) - [F]
I don't now after which LSWS update, but the code above stopped working.
Any chance for repairing that ...
Hi,
In our setup, we've:
LSWS 4.2.2 + 3x PHP ( 5.2, 5.3, 5.4 ) as ext. app's build with LSAPI 6.X
runing as suexec daemon from cgid.
Everyting runs fine.
Today I wanted to add another version of PHP with diferent prefix/settings/handler etc.
Just a copy&paste of previous config...
Hi,
We've a DirectAdmin based LiteSpeed setup where for one vhost we need to create
a custom LogFormat rule logging also the country code of every request from
MaxMind's GEOIP module attached to LSWS natively.
What's the correct enviroment variable to use withing httpd.conf to log such...