zEitEr
Super Moderator
Hello,
Just switching another server of a customer and faced an issue with nginx_apache:
That's what we have in 107th line:
We removed the block and nginx started OK, and still apache does all the things to care about auth.
More to say enabling/disabling password protected directory in Directadmin does not affect or touch nginx.conf file of the user.
Compiled on 'CentOS 5.10 64-bit'
Compile time: Jul 1 2014 at 02:12:15
Compiled with IPv6
So, I guess we do not need that auth_basic in NGINX when it's used as a reverse proxy.
Just switching another server of a customer and faced an issue with nginx_apache:
Code:
[root@server init.d]# service nginx restart
nginx: [emerg] duplicate location "/" in /usr/local/directadmin/data/users/userbob/nginx.conf:107
nginx: configuration file /etc/nginx/nginx.conf test failed
[root@server init.d]#
That's what we have in 107th line:
Code:
location / {
auth_basic "SECRET PLACE";
auth_basic_user_file /home/userbob/domains/bobs.domain.com/.htpasswd/public_html/.htpasswd;
}
We removed the block and nginx started OK, and still apache does all the things to care about auth.
More to say enabling/disabling password protected directory in Directadmin does not affect or touch nginx.conf file of the user.
Compiled on 'CentOS 5.10 64-bit'
Compile time: Jul 1 2014 at 02:12:15
Compiled with IPv6
So, I guess we do not need that auth_basic in NGINX when it's used as a reverse proxy.