#Why do i get TOO_MANY_REDIRECTS when trying to authenticate against my endpoint?

4 messages · Page 1 of 1 (latest)

solar sonnet
#

hello everyone. I have this nginx config:

server {
    listen  80;
    listen 443 ssl;
    ssl_certificate        /etc/letsencrypt/live/sol.l.mycompany.lv/fullchain.pem;
    ssl_certificate_key    /etc/letsencrypt/live/sol.l.mycompany.lv/privkey.pem;
    server_name sol.l.mycompany.lv;
    root /var/www/html;
    access_log /var/log/nginx/sol.l.access.log main;
    error_log /var/log/nginx/sol.l.error.log;
    fastcgi_read_timeout 600s;

    location /sol/ {
        auth_basic "Restricted Area";
        auth_basic_user_file /etc/nginx/.htpasswd_sol;
        proxy_connect_timeout       300;
        proxy_send_timeout          300;
        proxy_read_timeout          300;
        send_timeout                300;
        proxy_pass http://localhost:8080/bgw/sol/;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }
}

i try to send POST to :https://sol.l.mycompany.lv/. In postman i choose Basic Auth, enter username and password. But i get TOO_MANY_REDIRECTS. Can smb help me out? Thanks in advance!

keen yarrowBOT
#

This post has been reserved for your question.

Hey @solar sonnet! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

latent lark
#

maybe you got a redirection loop in your security config