I would like to configure my system so nginx is serving all of the the static files, while Tomcat is handling the dynamic
Is there a best practice for this?
Does tomcat accessible via HTTP? If yes, then Imagine we have some tomcat which serves on the same machine on port 88 queries which ends up with .jsp
The config file will be like:
The main idea is that nginx proxies requests that it couldn't handle to specific backend (backend will see request from 127.0.0.1).