Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] nginx as a reverse proxy?

I have setup virtual host on my Jetty and using nginx in front of it works as it should, as long as I am using http. When I use https that is
terminated on my nginx server, Jetty does not respond anymore (I get an http error 503 from nginx).

I have the following context file on my Jetty server:

<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_0.dtd";>
 
<Configure class="org.eclipse.jetty.webapp.WebAppContext">  
  <Set name="contextPath">/</Set>
  <Set name="war">/opt/webapps/application.war</Set>
  <Set name="virtualHosts">
    <Array type="java.lang.String">
      <Item>www.domain.no</Item>
    </Array>
  </Set>
</Configure>

Are there any particular config I am missing from Jetty to make this work or?


Regards,

BTJ

-- 
-----------------------------------------------------------------------------------------------
Bjørn T Johansen

btj@xxxxxxxxxx
-----------------------------------------------------------------------------------------------
Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"
-----------------------------------------------------------------------------------------------


Back to the top