Skip to content

Instantly share code, notes, and snippets.

@shumbo
Created January 10, 2016 19:42
Show Gist options
  • Save shumbo/cabca596cdb71deaf686 to your computer and use it in GitHub Desktop.
Save shumbo/cabca596cdb71deaf686 to your computer and use it in GitHub Desktop.
server {
listen 80;
server_name example.com;
location / {
return 301 https://example.com$request_uri;
}
location ~ ^/.well-known/ {
root /var/www/ssl/example.com/;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment