I have a Spring Boot + MVC app up and running on my server and it\'s bound to http://localhost:8000
.
There is an nginx proxy (or is it a reverse proxy, not
You can't combine proxy_pass
with try_files
in the way that you have attempted. As the comment in your configuration describes, the try_files
directive causes nginx to look for a file that matches the URI and then look for a directory that matches the URI. If it doesn't find either, it responds with a 404. You can read more about try_files
in the nginx documentation.
It's not clear from your question that you need to use try_files
at all so the simplest way to fix your configuration is to remove the try_files
line.