Posted April 19, 2019 7.2k views
ApacheSecurityLet's EncryptUbuntu 18.04

So I followed this guide to secure apache so I could have https enabled. When I got to the step that asked “Please choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access.” I chose option number 2 to redirect traffic to https. Now I get an error when trying to access my site “ redirected you too many times.”.

This is the output I get when running “sudo apache2ctl -S”

This is my apache2.conf

This is my

This is my

Any help would be greatly appreciated.

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.

Submit an Answer
1 answer


It looks like is loading without a redirect. Were you able to solve the issue?

In any case, when this happens there can be a few causes, but one stands out as the most common. Some of the most common web applications, like Wordpress (common enough to be worthy of mention for future readers that land here), will store the site URL in their configuration. Often they will redirect to that site URL. By setting the site URL as the http site and setting the web server to redirect to https, this can trigger a loop in which the web server redirects to https and the application redirects to http. Though this may not be your situation, anyone reading in the future that experiences this and happens to use Wordpress can find information about changing the site URL here:

In your specific case I do not see a CMS at all, nor do I see a redirect loop in your configuration. I suspect it may have been a cached redirect with a web browser. I’ve seen Chrome do that one too many times.