Skip to content

Instantly share code, notes, and snippets.

@lislon
Created February 5, 2015 08:32
Show Gist options
  • Save lislon/0172799b4b88827c6715 to your computer and use it in GitHub Desktop.
Save lislon/0172799b4b88827c6715 to your computer and use it in GitHub Desktop.
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