This is an automated archive made by the Lemmit Bot.

The original was posted on /r/selfhosted by /u/Any_Possibility4092 on 2023-07-03 18:08:53+00:00.


i want to use certbot to request a certificate. but it goes to the http port for this.

My website is not reachable on 80 because i have a xiaomi router and port 80 is already used by something and so port forwarding the port 80 gives error " port confilct" .

i use nginx and have tryed to redirect listen 80 to 443 by useing this line in the conf file : return 301 https://$host$request_uri;

but it does not get redirected … when my website is accessed by http , it first redirects the user to the xiaomi router settings page ( if accesed by internal computers from same router wifi) or not accessible (if tryed to access from computers from other routers)