Я запускаю nginx на сервере Ubuntu 16.До вчерашнего дня все работало нормально.
server {
listen 80;
auth_basic "Restricted";
auth_basic_user_file /etc/nginx/htpasswd;
server_name aims.thetowertech.com;
access_log /var/log/nginx/aims.access.log;
error_log /var/log/nginx/aims.error.log;
location / {
proxy_pass http://192.168.7.24;
proxy_set_header Connection "Keep-Alive";
proxy_set_header Proxy-Connection "Keep-Alive";
}
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/aims.thetowertech.com/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/aims.thetowertech.com/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
if ($scheme != "https") {
return 301 https://$host$request_uri;
} # managed by Certbot
}
Это мой конфиг.Теперь проблема с утра, как только api отправляет запрос в систему, nginx снова запрашивает HtTP-вход.При каждом запросе запрашивается логин.
Есть идеи в чем проблема?