Created
February 5, 2015 08:32
-
-
Save lislon/0172799b4b88827c6715 to your computer and use it in GitHub Desktop.
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
stream rdpromo_site { | |
server localhost:8000; | |
} | |
server { | |
listen 80; | |
server_name local.ros-dengi.ru; | |
location ~ ^/(vendors/|css/|img/|fonts/|download/) { | |
root /home/junior/code/rdpromo-site/public; | |
access_log off; | |
expires 7d; | |
} | |
location ~ ^/js/ { | |
root /home/junior/code/rdpromo-site/public; | |
access_log off; | |
expires 0; | |
} | |
location ~ ^/ { | |
proxy_redirect off; | |
proxy_pass http://rdpromo_site; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment