Created
November 30, 2014 11:00
-
-
Save tonyseek/9dfb43a79574f609300d to your computer and use it in GitHub Desktop.
partial nginx config of my blog
This file contains 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 characters
server { | |
listen 80; | |
server_name blog.tonyseek.com; | |
root /srv/blog.tonyseek.com/; | |
# digg has a broken https support while sni extension has been enabled. | |
if ($http_user_agent !~ Digg ) { | |
rewrite ^ https://$server_name$request_uri? permanent; # enforce to use https | |
} | |
location /feed { | |
rewrite ^ /atom.xml permanent; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment