Redirect Loop / Invalid Redirect

My domain is:

I ran this command:

It produced this output:

My web server is (include version):
Apache2 (2.4)

The operating system my web server runs on is (include version):
Raspbian (Debian Buster)

My hosting provider, if applicable, is:

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

I’m using a control panel to manage my site (no, or provide the name and version of the control panel):

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

Earlier I was attempting to add another subdomain to my server to serve a BookStack site and while doing so attempted to remove letsencrypt certs (by deleting its files, probably not the best option) and reissuing them. Since, my Nextcloud instance has broken and it seems to be redirectly incorrectly, though I’m not sure why. I reissued certs for as well as I haven’t modified my Nextcloud instance at all, only letsencrypt and my Apache vHosts.

I’ve done this as I’ve seen in other threads:

My Apache configuration that was generated:

My Nextcloud .htaccess:


read the output. There is a direct loop https -> https.

And checking your port 443 vHost - there is the wrong redirect.

Redirect permanent /

I had to remove that line as well as commenting out the alias line and it works fine now.

Any clue why that would suddenly change? I believe that’s how it was before (with those lines not deleted).

1 Like

That redirect is always wrong. https -> https, that’s a loop.

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