Created
August 19, 2009 06:04
-
-
Save soffes/170199 to your computer and use it in GitHub Desktop.
sample nginx conf
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 example.com; | |
root /var/www/example.com/current/public; | |
passenger_enabled on; | |
location ~ "/{javascripts|stylesheets|images}/" { | |
expires 31d; | |
} | |
} | |
server { | |
listen 80; | |
server_name *.example.com; | |
rewrite ^(.*) http://example.com$1 permanent; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment