Advertisement
flycat

Nginx examples

Feb 16th, 2016 (edited)
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.15 KB | None | 0 0
  1. if ( $host !~* bosichkom\.com ) { rewrite ^(.*)$ https://bosichkom.com$1 permanent; }
  2. if ( $scheme = "http" ) { return 301 https://$host$request_uri; }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement