Skip to main content

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

Hi,

What does your nginx config 'location' section look like for the jetty proxy? And aside from the jetty proxy, https content is served ok from nginx?

Cheers,

Ted


Ted McFadden
Chief Engineer

Leximancer Pty Ltd
Brisbane, Queensland,  Australia, 
ACN: 116 218 109

On 3 April 2016 at 23:41, Bjørn T Johansen <btj@xxxxxxxxxx> wrote:
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"
-----------------------------------------------------------------------------------------------
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users


Back to the top