Welcome! Log In Create A New Profile

Advanced

Re: Simple http authentication not working

Maxim Dounin
June 05, 2011 05:44PM
Hello!

On Sun, Jun 05, 2011 at 04:22:46PM -0400, pk899 wrote:

> Below is my config. The folder /site/private is supposed to show the
> usual HTTP authentication box, but the php files from that folder just
> start downloading in clear text. What am I doing wrong? The path of the
> passwd file is correct.

It's not clear what is the problem you are complaining about.

1. PHP files in clear text? You don't have any processing for php
defined in location /site/private. Default behaviour is to serve
anything as static. So php files being served as static is
expected result of your config.

2. No HTTP authentication box? It should appear only once per
browser start (or may not appear at all if you're brave enough to
save your password in browser). Check data of the wire or nginx
logs (access log should be enough) to see if authentication really
happens.

Maxim Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Simple http authentication not working

pk899 June 05, 2011 04:22PM

Re: Simple http authentication not working

Maxim Dounin June 05, 2011 05:44PM

Re: Simple http authentication not working

António P. P. Almeida June 06, 2011 09:20AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 197
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready