user with ssl-proxy, nginx problem

Maxim Dounin mdounin at mdounin.ru
Thu Feb 21 17:11:56 MSK 2008


Hello!

On Thu, Feb 21, 2008 at 02:50:48PM +0100, G??bor Farkas wrote:

> Igor Sysoev wrote:
>> On Thu, Feb 21, 2008 at 08:30:01AM +0100, G?bor Farkas wrote:
>>
>>>
>>> i have an nginx server, which server some files using HTTPS,
>>> and http-basic-auth.
>>>
>>> - the java app requests the file, gets a http 400 (not 401)
>>> - so the java app retries, and gets the http 400 again
>>> - this happens 5 times, and then the java app gives up
>>>
>>> in the nginx access log, i see 5 http 401 (Unauthorized) accesses, and i 
>>> see that the client did not send the username/password.
>>
>> I need a debug log. You may send it privately.
>> Note, that username/password in log is in plain text encoded by base64,
>> so choose some dummy values.
>
> is there a way to tell nginx to only "debug log" connections from certain 
> IPs?

events { 
     debug_connection 1.2.3.4;
     ...
}

Instead of IP you may use CIDR here, e.g. 192.168.0.0/16.

Maxim Dounin





More information about the nginx mailing list