Hacker News new | ask | show | jobs
by jonesetc 3590 days ago
> A nodejs reverse proxy forks the API and static web requests between tomcat and another nodejs static webserver.

Just curious why you don't use nginx here. It will serve static files and proxy to the API. I'm sure the nodejs proxy was easy enough, but adding in gzipping files, rewrite rules, SSL, etc and it seems like nginx would even end up being more simple.

1 comments

NodeJS rev proxy allows custom logic after intercepting requests - all in javascript. Not sure if NGinx would allow that. But yes, I would probably move to Nginx in near future for its tomcat-like robustness.