How Do I Configure NGINX as a Proxy to Jetty?


I want to set up a reverse proxy to serve HTTPS pages on NGINX and redirect them to Jetty using HTTP.


To enable this functionality on embedded Jetty 9, uncomment from in <datameer-install-path>/etc/jetty.xml from line 90

<!-- Uncomment to enable handling of X-Forwarded- style headers
<Call name="addCustomizer">
  <Arg><New class="org.eclipse.jetty.server.ForwardedRequestCustomizer"/></Arg>

For further information on configuring NGINX, see following articles: