On 08/10/16 10:54, spggw...@posteo.eu wrote:
However, running from within Apache it always returns a blank value.
Running the same IPs through the script manually does return values.
Any ideas what could be going on here?
First, I totally agree with Julian about evilness of using user's IP for
selecting user's locale or (worse) geo-blocking. As for the technical
part of the question, I'd start with:
1. Testing the script with exact privileges it receives from Apache. It
can be prevented from working by file modes, chroot (or other jail),
apparmor/selinux etc.
2. Injecting some logging statements into the script (or use wrapper) to
see if it actually tries to return something to Apache or not.
--
With Best Regards,
Marat Khalili
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org