⬅︎ Back to Local Django development with Nginx
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
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, thanks!
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
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, thanks!