⬅︎ Back to Local Django development with Nginx
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; } }
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
Cool, thanks!
Comment
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;
}
}
Parent comment
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
Cool, thanks!