Question
SSL set up gives "redirected you too many times."
Hi,
I am trying to set up SSL with this tutorial - https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-16-04#step-1-install-let’s-encrypt-client
Everything went okay but when I try to go to my subdomain (only this should be encrypted), I am getting following:
The work-bot.be-codified.com page isn’t working
work-bot.be-codified.com redirected you too many times.
Here is my /etc/nginx/sites-available/default file
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name work-bot.be-codified.com;
return 301 https://$server_name$request_uri;
# SSL configuration
#
listen 443 ssl http2 default_server;
listen [::]:443 ssl http2 default_server;
include snippets/ssl-work-bot.be-codified.com.conf;
include snippets/ssl-params.conf;
Can somebody please tell me what is wrong?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×