Skip to content

Instantly share code, notes, and snippets.

@tdebarochez
Created July 25, 2013 19:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tdebarochez/6083089 to your computer and use it in GitHub Desktop.
Save tdebarochez/6083089 to your computer and use it in GitHub Desktop.
server {
listen 80;
server_name my.domaine.name;
location ~* \.(?:ico|css|js|gif|jpe?g|png)$ {
expires max;
add_header Pragma public;
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
root /home/myuser/app;
rewrite ^/assets/(.*)$ /static/$1 last;
}
location / {
proxy_pass http://localhost:9001/;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment