nginx configuration to redirect http to https
#nginx configuration to redirect http to https | |
# from https://www.bjornjohansen.no/redirect-to-https-with-nginx | |
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
server_name _; | |
return 301 https://$host$request_uri; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.
phoz0n commentedMay 4, 2018
Thanks very helpful