Infinite Redirect Loop After Installing Cert

My domain is:

My web server is (include version):
2023.3.20240108-0.amzn2023 I think

The operating system my web server runs on is (include version):
Amazon Linux 2023

My hosting provider, if applicable, is:

I can login to a root shell on my machine (yes or no, or I don't know):

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot): 2.8.0

Hi, first off I'm a complete noob so please explain as if I know almost nothing. I'm a web dev (that works in a MS environment) and wanted to mess around and try to learn about certs and networking.

Before installing the Let's Encrypt cert, my site was working fine. I was able to go to the domain and see my html (which is just test). After installing, I get the "too many redirects" page in my browser. While searching through the posts here, I found someone that was using, so I ran that and that's how I came to the conclusion that I have an https > https redirect loop. How do I fix this?

Your webserver version is Server: Apache/2.4.58 (Amazon Linux) OpenSSL/3.0.8 (as it self-reports via http headers).

It is likely something bad is in the Apache configuration, which is causing your page to redirect to itself.

If you run this command on your server, it will tell us the configuration and we can help debug it:

sudo apachectl -t -D DUMP_VHOSTS


Thanks for pointing that out!

That command returns "Passing arguments to httpd using apachectl is no longer supported." I've seen other posts with a similar command though:

httpd -t -D DUMP_VHOSTS

So I tried that, and this is the output. Thank you for helping me!

VirtualHost configuration:
*:80          (/etc/httpd/conf.d/
*:443                  is a NameVirtualHost
         default server (/etc/httpd/conf.d/
         port 443 namevhost (/etc/httpd/conf.d/
         port 443 namevhost (/etc/httpd/conf.d/ssl.conf:56)

I've been messing around with stuff since posting this topic. I think I should just trash the server at this point and spin up a new one. I'll reply again if I run into the same issue.

1 Like

If you want to paste the config files from /etc/http/conf.d/, we can try to find out what's wrong with them, but it's up to you :slight_smile:


@TheCC presently I see both Ports 80 & 443 are filtered,
most likely one or more firewalls are the cause.

$ nmap -Pn -p80,443
Starting Nmap 7.80 ( ) at 2024-01-25 03:26 UTC
Nmap scan report for (
Host is up.
rDNS record for

80/tcp  filtered http
443/tcp filtered https

Nmap done: 1 IP address (1 host up) scanned in 3.10 seconds

Also using the online tool Let's Debug yields these results

ERROR has an A (IPv4) record ( but a request to this address over port 80 did not succeed. Your web server must have at least one working IPv4 or IPv6 address.
A timeout was experienced while communicating with Get "": context deadline exceeded

@0ms: Making a request to (using initial IP
@0ms: Dialing
@10000ms: Experienced error: context deadline exceeded
A test authorization for to the Let's Encrypt staging service has revealed issues that may prevent any certificate for this domain being issued. Fetching Timeout during connect (likely firewall problem)

They've probably deleted the server now. It was up earlier.


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.