Skip to content

Instantly share code, notes, and snippets.

@Nikschavan Nikschavan/force-ssl-website.conf Secret
Last active Jan 29, 2018

What would you like to do?
Force http-https Redirect nginx
server {
listen 80;
server_name www.<your-domain> <your-domain>;
return 301 https://www.<your-domain>$request_uri;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.