Created
December 29, 2010 19:47
-
-
Save ptzn/758967 to your computer and use it in GitHub Desktop.
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 characters
server { | |
listen 80; | |
server_name SERVER_NAME; | |
root PATH_TO_PUBLIC; | |
passenger_enabled on; | |
# serve static files directly | |
location ~ .html { | |
root PATH_TO_PUBLIC; | |
} | |
location ~* ^.+\.(jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js|mov)$ { | |
root PATH_TO_PUBLIC; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment