Re: Add country region in logs.

2013-08-28 Thread Francis Daly
On Wed, Aug 28, 2013 at 12:03:48PM -0600, Alex Flex wrote: Hi there, I haven't tested this, but... > I already have the GeoIP db loaded, and an example map for a region as > follows: > > map $geoip_country_code $north_africa { > default ""; > ##Northern Africa > DZ 1;

Re: Fake Basic Auth

2013-08-28 Thread Christian Felsing
Thank you for your hint, which solved this problem with a little bit LUA code. If LUA code (security) tests are finsihed I will publish this code. cheers Christian Am 27.08.2013 00:08, schrieb Francis Daly: > The correct value is "Basic " followed by the base64-encoding of > user:pass, where "use

Add country region in logs.

2013-08-28 Thread Alex Flex
Hello nginx! Iam trying to identify all my visitors based on their continent region, i want to log this info in each log entry. There is no geoip database for continent region so I want to map manually the countries within their regions. I already have the GeoIP db loaded, and an example map

Re: 504 Gateway Time-out when calling curl_exec() in PHP with SSL peer verification (CURLOPT_SSL_VERIFYPEER) off

2013-08-28 Thread Ben Johnson
On 8/26/2013 11:25 AM, Lukas Tribus wrote: > Hi! > > >> If this were the root cause, wouldn't the cURL call fail in the way way, >> regardless of the CURLOPT_SSL_VERIFYPEER value? In other words, it >> doesn't seem like changing this cURL option would change the number of >> backend processes r

502-Error but nothing in error.log (anymore)

2013-08-28 Thread bernado
Hi there, I'm using nginx on my arm5 to run a seafile-server and ran into a couple of problems just now. when I open a page that embeds a picture from a certain folder the picture won't show. When I copy the pictures url and open that url manually, I get the error: "An error occurred. Sorry, the