Created
January 18, 2014 23:06
-
-
Save danneu/8498070 to your computer and use it in GitHub Desktop.
sites-available/example.com
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
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