EngineX ignores Auth Basic?
Posted
by Miko
on Server Fault
See other posts from Server Fault
or by Miko
Published on 2010-03-13T20:11:48Z
Indexed on
2010/03/13
20:15 UTC
Read the original article
Hit count: 311
nginx
|authentication
I have configured nginx to password protect a directory using auth_basic. The password prompt comes up and the login works fine.
However... if I refuse to type in my credentials, and instead hit escape multiple times in a row, the page will eventually load w/o CSS and images.
In other words, continuously telling the login prompt to go away will at some point allow the page to load anyway.
Is this an issue with nginx, or my configuration?
Here is my virtual host:
31 server {
32 server_name sub.domain.com;
33 root /www/sub.domain.com/;
34
35 location / {
36 index index.php index.html;
37 root /www/sub.domain.com;
38 auth_basic "Restricted";
39 auth_basic_user_file /www/auth/sub.domain.com;
40 error_page 404 = /www/404.php;
41 }
42
43 location ~ \.php$ {
44 include /usr/local/nginx/conf/fastcgi_params;
45 }
46 }
My server runs CentOS + nginx + php-fpm + xcache + mysql
© Server Fault or respective owner