Comment

Mike

Cool - I may have to try this.

Any ideas how to proxy two or more Django dev servers under one NGINX proxy in this manner?

Thanks

Replies

Peter Bengtss

Like this:

server{
        location / {
        try_files $uri @django @npm;
    }
    location @django {
      proxy_pass http://127.0.0.1:8000;
    }
    location @npm {
      proxy_pass http://127.0.0.1:3000;
    }
}

Mike

Cool, thanks!