basic auth

Greg Benedict gbenedict at gmail.com
Sun Jul 15 23:52:20 MSD 2007


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.

Greg

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


More information about the nginx mailing list