Skip to content

Instantly share code, notes, and snippets.

@taylor
Last active January 11, 2020 22:56
Show Gist options
  • Select an option

  • Save taylor/79c1c133af7584f1bb98 to your computer and use it in GitHub Desktop.

Select an option

Save taylor/79c1c133af7584f1bb98 to your computer and use it in GitHub Desktop.
server {
listen 80;
listen [::]:80 default_server ipv6only=on;
#root /usr/share/nginx/html;
#index index.html index.htm;
#server_name www.example.com;
access_log /var/log/nginx/http_redirect.log combined;
return 301 https://$server_name$request_uri;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment