Welcome! Log In Create A New Profile

Advanced

Re: Nginx Security Hardening and Rules

October 21, 2014 09:16AM
I hate to bring bugs into this topic but seems possible that this is something Windows related.

But auth_basic is not working.

I have not tested on a official NGINX build i am using itpp2012's builds what could be why it is not working but this is my config.

location ~ ^/(administrator) {
auth_basic "Restricted Area";
auth_basic_user_file C:/server/.htpasswd;
}

And the output result is this.

2014/10/21 14:09:19 [error] 5208#6132: *1 user "admin": password mismatch, client: ::1, server: localhost, request: "GET /administrator/ HTTP/1.1", host: "localhost"
2014/10/21 14:09:20 [error] 5208#6132: *1 user "admin": password mismatch, client: ::1, server: localhost, request: "GET /administrator/ HTTP/1.1", host: "localhost"
2014/10/21 14:09:21 [error] 5208#6132: *1 user "admin": password mismatch, client: ::1, server: localhost, request: "GET /administrator/ HTTP/1.1", host: "localhost"

Also i use the following to generate the htpassword file : http://www.tools.dynamicdrive.com/password/

And regardless of why i set the password to it does not authorise me access the username i always set as admin

this is the current htaccess :
admin:Wjki8C1VIunc2

So that would be
Username : admin
Pass : lol123

But everylogin results in a password mismatch ?
Subject Author Posted

Nginx Security Hardening and Rules

c0nw0nk October 18, 2014 10:51PM

Re: Nginx Security Hardening and Rules

c0nw0nk October 18, 2014 11:21PM

Re: Nginx Security Hardening and Rules

mex October 19, 2014 11:00AM

Re: Nginx Security Hardening and Rules

c0nw0nk October 19, 2014 12:14PM

Re: Nginx Security Hardening and Rules

mex October 19, 2014 12:57PM

Re: Nginx Security Hardening and Rules

itpp2012 October 19, 2014 01:31PM

Re: Nginx Security Hardening and Rules

c0nw0nk October 19, 2014 01:47PM

Re: Nginx Security Hardening and Rules

sarahnovotny October 19, 2014 12:22PM

Re: Nginx Security Hardening and Rules

Maxim Dounin October 20, 2014 01:48AM

Re: Nginx Security Hardening and Rules

c0nw0nk October 20, 2014 09:37AM

Re: Nginx Security Hardening and Rules

c0nw0nk October 20, 2014 09:42AM

Re: Nginx Security Hardening and Rules

Maxim Dounin October 20, 2014 09:46AM

Re: Nginx Security Hardening and Rules

Stefanita Rares Dumitrescu October 20, 2014 01:26PM

Re: Nginx Security Hardening and Rules

mex October 20, 2014 02:13PM

Re: Nginx Security Hardening and Rules

Maxim Dounin October 20, 2014 02:24PM

Re: Nginx Security Hardening and Rules

c0nw0nk October 21, 2014 09:16AM

Re: Nginx Security Hardening and Rules

itpp2012 October 21, 2014 10:47AM

Re: Nginx Security Hardening and Rules

c0nw0nk October 21, 2014 02:01PM

Re: Nginx Security Hardening and Rules

c0nw0nk October 23, 2014 11:43AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 76
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready