Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I'm using cloud9 ide, which listens on a local port @ / and I'm proxying to it via proxy_pass. I want to add a second instance, listening on another local port and to be able to use it from code.mydomain.org/myapp. My / location works perfectly, but I am stumped setting up a second proxy using a location other than /.
- server {
- listen 80;
- server_name code.mydomain.org;
- location / {
- proxy_pass http://localhost:3131;
- include /etc/nginx/proxy_params;
- }
- location ^/myapp/ {
- rewrite /myapp(.*) $1 break;
- proxy_pass http://127.0.0.1:3132;
- include /etc/nginx/proxy_params;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement