Skip to content

Instantly share code, notes, and snippets.

@danneu
Created January 18, 2014 23:06
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 danneu/8498070 to your computer and use it in GitHub Desktop.
Save danneu/8498070 to your computer and use it in GitHub Desktop.
sites-available/example.com
server {
listen 80;
server_name example.com;
rewrite ^(.+?)/?$ http://www.example.com$1 permanent;
}
server {
listen 80;
server_name www.example.com;
root /var/www/example.com/public_html;
location / {
try_files $uri @MYCLOJUREAPP;
}
location @MYCLOJUREAPP {
proxy_pass http://localhost:3000;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment