Created
August 21, 2014 00:08
-
-
Save christophermancini/56a4f5a4069143b13dc9 to your computer and use it in GitHub Desktop.
Revisions
-
Christopher Mancini created this gist
Aug 21, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ server { listen 80; server_name whatever.com www.whatever.com; root /var/www/whatever; location /admin { if ( $scheme !~ https ) { return 301 https://www.whatever.com$request_uri; } } location / { # This is cool because no php is touched for static content try_files $uri $uri/ @rewrites; } }