basic auth
Igor Sysoev
is at rambler-co.ru
Mon Jul 16 00:15:19 MSD 2007
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 at 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 at 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 at 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 at 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.
> >> >> >> >
> >> >> >> >> Greg
> >> >> >> >>
> >> >> >> >>
> >> >> >> >> On 7/15/07, Igor Sysoev <is at 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-nginx at 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?
> >> >> >> >
> >> >> >> >
> >> >> >> >--
> >> >> >> >Igor Sysoev
> >> >> >> >http://sysoev.ru/en/
> >> >> >> >
> >> >> >> >
> >> >> >>
> >> >> >>
> >> >> >> --
> >> >> >> Thanks,
> >> >> >>
> >> >> >> Greg Benedict
> >> >> >>
> >> >> >
> >> >> >--
> >> >> >Игорь Сысоев
> >> >> >http://sysoev.ru
> >> >> >
> >> >> >
> >> >>
> >> >>
> >> >> --
> >> >> Thanks,
> >> >>
> >> >> Greg Benedict
> >> >
> >> >--
> >> >Igor Sysoev
> >> >http://sysoev.ru/en/
> >> >
> >> >
> >>
> >>
> >> --
> >> Thanks,
> >>
> >> Greg Benedict
> >
> >--
> >Igor Sysoev
> >http://sysoev.ru/en/
> >
> >
>
>
> --
> Thanks,
>
> Greg Benedict
--
Igor Sysoev
http://sysoev.ru/en/
More information about the nginx
mailing list