Skip to content

Instantly share code, notes, and snippets.

@41tair
Created January 22, 2019 07:06
Show Gist options
  • Select an option

  • Save 41tair/4ca1a57ea37d7fd434dfabd1cf47bca0 to your computer and use it in GitHub Desktop.

Select an option

Save 41tair/4ca1a57ea37d7fd434dfabd1cf47bca0 to your computer and use it in GitHub Desktop.

Revisions

  1. 41tair created this gist Jan 22, 2019.
    7 changes: 7 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    server {
    listen 80;
    server_name _;
    if ($http_x_forwarded_proto = 'http'){
    return 301 https://$host$request_uri;
    }
    }