Quantcast
Channel: NGINX: HTTP to HTTPS redirect not working - Server Fault
Browsing all 3 articles
Browse latest View live

Answer by Leo Gallego for NGINX: HTTP to HTTPS redirect not working

I'm answering this although it's been accepted because I think the answer is wrong.I'm pasting your config below as-is, with only a comment pointing to the wrongly placed (extra it seems) curly bracked...

View Article


Answer by sanjayparmar for NGINX: HTTP to HTTPS redirect not working

Please use $server instead of $hostserver { listen 80 default_server; listen [::]:80 default_server; server_name example.com www.example.com; return 301 https://$server_name$request_uri;}Please refer...

View Article


NGINX: HTTP to HTTPS redirect not working

First time posting here. I've been searching on here for about two days to find a solution to my problem and nothing is working. I know, there is a ton of posts about this same problem but none of the...

View Article
Browsing all 3 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>