Skip to content

Instantly share code, notes, and snippets.

@njoyce
Created February 6, 2018 14:53
Show Gist options
  • Save njoyce/3535495d755f1dcd5939a3470b585ecc to your computer and use it in GitHub Desktop.
Save njoyce/3535495d755f1dcd5939a3470b585ecc to your computer and use it in GitHub Desktop.
Nginx configuration for HTTP to HTTPS service
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
return 307 https://$host$request_uri;
}
daemon off;
error_log stderr;
pid /run/nginx.pid;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment