Hello,
first, the form:
My domain is: chainsigma.com
I ran this command: sudo certbot --nginx -d chainsigma.com -d www.chainsigma.com
It produced this output: (worked fine)
My web server is (include version): nginx/1.14.2
The operating system my web server runs on is (include version): Debian
I can login to a root shell on my machine (yes or no, or I don't know): yes
I'm using a control panel to manage my site (no, or provide the name and version of the control panel): no
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot): certbot 0.31.0
Before applying letsencrypt / without SSL, the website worked fine. After letsencrypt, my browser gives me the error message "Too many redirects", and this tool https://check-your-website.server-daten.de/?q=chainsigma.com also says that there is a loop.
However, I couldn't find an error in the sites-available/chainsigma.com file:
server {
server_name chainsigma.com www.chainsigma.com;
location = /favicon.ico { access_log off; log_not_found off; }
location /static/ {
root /home/user/chainsigmacom;
}
location / {
include proxy_params;
proxy_pass http://unix:/run/chainsigma_gunicorn.sock;
}
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/chainsigma.com/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/chainsigma.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
}server {
if ($host = www.chainsigma.com) {
return 301 https://$host$request_uri;
} # managed by Certbot
if ($host = chainsigma.com) {
return 301 https://$host$request_uri;
} # managed by Certbot
listen 80;
server_name chainsigma.com www.chainsigma.com;
return 404; # managed by Certbot
}
Do you see how to fix this? Thanks in advance!