15 messages in ru.sysoev.nginxRe: basic auth
FromSent OnAttachments
Greg BenedictJul 13, 2007 9:20 pm 
Aleksandar LazicJul 13, 2007 11:49 pm 
Greg BenedictJul 15, 2007 6:29 am 
Igor SysoevJul 15, 2007 6:40 am 
Greg BenedictJul 15, 2007 7:01 am 
Igor SysoevJul 15, 2007 7:05 am 
Greg BenedictJul 15, 2007 7:09 am 
Igor SysoevJul 15, 2007 7:19 am 
Greg BenedictJul 15, 2007 7:22 am 
Igor SysoevJul 15, 2007 7:28 am 
Greg BenedictJul 15, 2007 12:51 pm 
Igor SysoevJul 15, 2007 1:05 pm 
Greg BenedictJul 15, 2007 1:08 pm 
Igor SysoevJul 15, 2007 1:14 pm 
Greg BenedictJul 15, 2007 1:18 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: basic authActions...
From:Greg Benedict (gben@public.gmane.org)
Date:Jul 15, 2007 1:18:08 pm
List:ru.sysoev.nginx

that's correct.

On 7/15/07, Igor Sysoev <is@rambler-co.ru> wrote:

On Sun, Jul 15, 2007 at 04:08:49PM -0400, Greg Benedict wrote:

It was not. Note that when I compiled I did not include --with-debug.

It's bug.

So you have such error_log's:

error_log /path/to/vhost/log/nginx.error.log;

http {

server { error_log /path/to/vhost/log/nginx.error_ssl.log; }

On 7/15/07, Igor Sysoev <is@rambler-co.ru> wrote:

On Sun, Jul 15, 2007 at 03:52:20PM -0400, Greg Benedict wrote:

Actually it wasn't even that far. I just enabled debug level:

error_log /path/to/vhost/log/nginx.error_ssl.log debug;

What appears to have happened is that since this was a vhost and not the main host it wasn't bubbling up (which I thought it would). Once I enabled it at the child level it showed up.

If you set error_log inside vhost, then on 500 error you should see in this log the message:

[crit] ... open() "..." failed (2: No such file or directory), ...

even without debug level

Was it there or not ?

On 7/15/07, Igor Sysoev <is@rambler-co.ru> wrote:

On Sun, Jul 15, 2007 at 10:23:18AM -0400, Greg Benedict wrote:

Once I enabled debug on the vhost is showed an incorrect file path.

On [crit] level ?

On 7/15/07, Igor Sysoev <is@rambler-co.ru> wrote:

On Sun, Jul 15, 2007 at 10:09:33AM -0400, Greg Benedict wrote:

I had mis-typed a word in my path to the password file. I spelled config as contig and I just didn't see it.

Strange, nginx should show

[crit] ... open() "..." failed (2: No such file or directory), ...

What error message have you seen on debug level ?

On 7/15/07, Igor Sysoev <is@rambler-co.ru> wrote:

On Sun, Jul 15, 2007 at 10:01:54AM -0400, Greg Benedict wrote:

I had debugging enabled on the main nginx config, but not the vhost. Nothing was showing up in the main error log, but when I enabled it for the vhost, it showed the issue and I was able to correct it.

Is that normal behavior? Do I always need to specify logs for a

vhost?

Yes, it's normal: by default level is "error". If you unset all error logs in vhosts, then the log will be

inherited

from

the main part.

Thanks for the help!

What was the issue ? It's not normal, that nginx returns 500

without

any

messages in error log.

On 7/15/07, Igor Sysoev <is@rambler-co.ru> wrote:

On Sun, Jul 15, 2007 at 09:30:08AM -0400, Greg Benedict wrote:

That's where I'm stuck. Nothing shows up in the logs, error

or

access.

Could you make debug log ?

On 7/14/07, Aleksandar Lazic <al-n@none.at> wrote:

Hi,

On Sam 14.07.2007 00:20, Greg Benedict wrote:

I've run into an issue using basic auth that I could use

some

help

with. When you go to a page, it pops up for credentials, but regardless of entry (good or bad) it returns a 500 error.

What is in the error log?

Greg Benedict

Greg Benedict

Greg Benedict