Error pages/Web Authentication
Maxim Dounin
mdounin at mdounin.ru
Wed Jun 15 12:04:29 MSD 2011
Hello!
On Tue, Jun 14, 2011 at 11:21:52PM -0400, HTF wrote:
> Maxim Dounin Wrote:
> -------------------------------------------------------
> > nginx uses only *one* configuration to process
> > request, please see
> > here:
> >
> > http://wiki.nginx.org/HttpCoreModule#location
> >
> > If you want /administrator to be protected, but
> > still want php
> > processed there, you have to define two locations
> > for this: one
> > for protected static files and one for protected
> > php files.
> >
> > Using nested location simple config will look
> > like:
> >
> > location ^~ /administrator {
> > auth_basic ...
> > ...
> >
> > location ~ \.php$ {
> > fastcgi_pass ...
> > ...
> > }
> > }
>
> Hello,
>
> Thank you.
>
> Is this recommended/only configuration for this in my case - according
> to wiki from the link above (>
> http://wiki.nginx.org/HttpCoreModule#location):
> "While nested locations are allowed by the configuration file parser,
> their use is discouraged and may produce unexpected results. "
There were problems with nested locations somewhere near 0.7.*.
They were resolved, wiki is just stale.
> Also could you please advise why the SHA and MD5 encryption for the
> basic authentication is not working for me. I receive password mismatch
> errors in the log files
What does nginx -v show?
Maxim Dounin
More information about the nginx
mailing list