Redirect Loop / Invalid Redirect

My domain is:
cloud.astrelion.com

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):
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


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 cloud.astrelion.com as well as wiki.astrelion.com. 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:
https://check-your-website.server-daten.de/?q=cloud.astrelion.com

My Apache configuration that was generated:
https://hatebin.com/oqtizdkdgk

My Nextcloud .htaccess:
https://hatebin.com/sgnyrecoqr

Hi @ASTRELION

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

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

Redirect permanent / https://cloud.astrelion.com

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.