Remove subpath (context root) in nginx for a java app

You need to specify the application's root URL in the application configuration. This will make the application generate correct URLs for links and resources.