Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Nginx config for HTTP to HTTPS
server {
listen 80;
server_name domain.com www.domain.com;
return 301 https://domain.com$request_uri;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment