Created
March 20, 2012 15:25
-
-
Save krusty/2136990 to your computer and use it in GitHub Desktop.
Nginx proxy for assembla api
This file contains hidden or 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
upstream assembla { | |
server www.assembla.com; | |
} | |
server { | |
listen *:8000; | |
server_name localhost; | |
rewrite_log on; | |
root /home/lucas/proyects/assembla.js; | |
index ticket.html; | |
location /tickets/ { | |
try_files $uri $uri/; | |
} | |
location /api { | |
rewrite ^/api/(.*)$ /$1 break; | |
proxy_set_header Host "www.assembla.com"; | |
proxy_pass http://assembla; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment