Re: Perl prg RewriteMap always returns blank

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 08/10/16 10:54, spggwp7q@xxxxxxxxx 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-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux