Jump to: navigation, search

Talk:Jetty/Tutorial/Apache

Revision as of 19:55, 17 October 2011 by Ollitech.gmail.com (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Using behind Apache with SSL

I followed the instructions on this page, http://wiki.eclipse.org/Jetty/Tutorial/Apache#Proxying_SSL_on_Apache_to_HTTP_on_Jetty and set the X-Forwarded-Proto in apache, and Set the forwarded parameter in jetty.xml.

But somehow the application (bamboo) is still using http for (some?) redirects. in apache config,

RequestHeader set X-Forwarded-Proto https

# builds -> BAMBOO
ProxyPass           /builds       http://meserver:8085/builds
ProxyPassReverse    /builds       http://meserver:8085/builds

and Jetty (tried using custom connector that overrides custommize, as well as ChannelSelectorConnector)


  <Call name="addConnector">
       <Arg>
           <New class="com.lmig.ets.forge.bamboo.CustomBambooHttpsConnector">
               <Set name="host"><Property name="jetty.host" /></Set>
               <Set name="port"><Property name="jetty.port" default="8085"/></Set>
               <Set name="forwarded">true</Set>
            </New>
       </Arg>
   </Call>