Skip to main content
Clarified title
Link

unwanted http to https redirect happening and I don't know why

Additional code output for clarification
Source Link

I have a few raspberry pis running some services in my homelab. For some reason I can't explain, they are all redirecting http to https for most servers: For example, if I run

$ curl http://example.ca 

I get the response, <html><body><script>window.location.replace("https://example.ca")</script></body></html>

And this happens for most addresses, unless the domains are well-known. Like, example.com will load properly.

Any idea why this is happening, or how I can debug the situation?

If I run curl -v, it gives a bit more indication:

< HTTP/1.1 200 Ok < Server: micro_httpd < Cache-Control: no-cache < Date: Thu, 07 Aug 2025 17:53:09 GMT < Content-Type: text/html < X-Frame-Options: SAMEORIGIN < Connection: close < 

I have a few raspberry pis running some services in my homelab. For some reason I can't explain, they are all redirecting http to https for most servers: For example, if I run

$ curl http://example.ca 

I get the response, <html><body><script>window.location.replace("https://example.ca")</script></body></html>

And this happens for most addresses, unless the domains are well-known. Like, example.com will load properly.

Any idea why this is happening, or how I can debug the situation?

I have a few raspberry pis running some services in my homelab. For some reason I can't explain, they are all redirecting http to https for most servers: For example, if I run

$ curl http://example.ca 

I get the response, <html><body><script>window.location.replace("https://example.ca")</script></body></html>

And this happens for most addresses, unless the domains are well-known. Like, example.com will load properly.

Any idea why this is happening, or how I can debug the situation?

If I run curl -v, it gives a bit more indication:

< HTTP/1.1 200 Ok < Server: micro_httpd < Cache-Control: no-cache < Date: Thu, 07 Aug 2025 17:53:09 GMT < Content-Type: text/html < X-Frame-Options: SAMEORIGIN < Connection: close < 
Source Link

http to https redirect happening and I don't know why

I have a few raspberry pis running some services in my homelab. For some reason I can't explain, they are all redirecting http to https for most servers: For example, if I run

$ curl http://example.ca 

I get the response, <html><body><script>window.location.replace("https://example.ca")</script></body></html>

And this happens for most addresses, unless the domains are well-known. Like, example.com will load properly.

Any idea why this is happening, or how I can debug the situation?