J
J
jorshjorsh952017-09-18 15:12:28
Apache HTTP Server
jorshjorsh95, 2017-09-18 15:12:28

HTTP Authorization not working with ssl?

Hello, there was a problem
http authorization does not work after connecting the ssl certificate, it just gives 401 and that's it ..

please tell me what could be the problem?

upd 401 gives back

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
John Doe, 2017-09-18
@rabbit418

402 Payment Required
Check your server configuration again. You can do this through:
Well, then if there are no problems:
You can also redo the authorization:
1. apt install apache2-utils -y
2. htpasswd -c /etc/nginx/.htpasswd username
3. And add a new location:

location / {
  auth_basic "Restricted";
  auth_basic_user_file /etc/nginx/.htpasswd;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question