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?
closed as off-topic by Ward, masegaloeh, Jenny D, kasperd, Katherine Villyard May 24 at 23:16
This question appears to be off-topic. The users who voted to close gave this specific reason:
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).