Antsle Forum

Welcome to our Antsle community! This forum is to connect all Antsle users to post experiences, make user-generated content available for the entire community and more. 

Please note: This forum is about discussing one specific issue at a time. No generalizations. No judgments. Please check the Forum Rules before posting. If you have specific questions about your Antsle and expect a response from our team directly, please continue to use the appropriate channels (email: [email protected]) so every inquiry is tracked. 

Please or Register to create posts and topics.

ERR_TOO_MANY_REDIRECTS

I have an Antsle One D+ and I have  had this problem on and off since day one.  It happens when I use SSL.  Please take a look at my conf files below and tell me if you see anything:

mail.spicychimichanga.conf:

server {
listen 80;
server_name mail.spicychimichan.ga;
root /var/www;
location / {
proxy_read_timeout 300;
proxy_connect_timeout 300;
proxy_redirect off;
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;
proxy_set_header X-Forwarded-Protocol $scheme;
proxy_set_header X-Forwarded-Ssl off;
proxy_set_header X-Url-Scheme $scheme;
proxy_set_header X-Frame-Options SAMEORIGIN;
proxy_pass http://10.1.1.16;
}
}

ssl.spicychimichanga.conf:

upstream sslchimi {
# Enter the IP address iand port number of your antlet handling this domain
# and uncomment the following line:
server 10.1.1.16:80;
}

server {
listen 443 ssl;
ssl on;
ssl_certificate /antlets/CAPTAINCARL/etc/letsencrypt/live/spicychimichan.ga/fullchain.pem;
ssl_certificate_key /antlets/CAPTAINCARL/etc/letsencrypt/live/spicychimichan.ga/privkey.pem;
server_name mail.spicychimichan.ga;
root /var/www/;

location / {
proxy_read_timeout 300;
proxy_connect_timeout 300;
proxy_redirect off;
proxy_buffers 4 256k;
proxy_buffer_size 128k;
proxy_busy_buffers_size 256k;

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;
proxy_set_header X-Forwarded-Protocol $scheme;
proxy_set_header X-Forwarded-Ssl off;
proxy_set_header X-Url-Scheme $scheme;
proxy_set_header X-Frame-Options SAMEORIGIN;

proxy_pass http://sslchimi;
}
}

Have tried changing this line in the ssl conf:

proxy_pass http://sslchimi;

to

proxy_pass http://10.1.1.16;

Personally, I'd also change your mail.spicychimichanga.conf to just have:

server {
listen 80;
server_name mail.spicychimichan.ga;
return 301 https://mail.spicychimichan.ga$request_uri;
}

(Or you could put both into the same conf file)