Instantly share code, notes, and snippets.

Embed
What would you like to do?
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;
}
@phoz0n

This comment has been minimized.

phoz0n commented May 4, 2018

Thanks very helpful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment