Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Talk:Jetty/Tutorial/Apache"

(Using behind Apache with SSL)
 
(Using behind Apache with SSL)
 
Line 5: Line 5:
 
But somehow the application (bamboo) is still using http for (some?) redirects.
 
But somehow the application (bamboo) is still using http for (some?) redirects.
 
in apache config,
 
in apache config,
 +
<pre>
 
RequestHeader set X-Forwarded-Proto https
 
RequestHeader set X-Forwarded-Proto https
  
Line 10: Line 11:
 
ProxyPass          /builds      http://meserver:8085/builds
 
ProxyPass          /builds      http://meserver:8085/builds
 
ProxyPassReverse    /builds      http://meserver:8085/builds
 
ProxyPassReverse    /builds      http://meserver:8085/builds
 
+
</pre>
 
and Jetty (tried using custom connector that overrides custommize, as well as ChannelSelectorConnector)
 
and Jetty (tried using custom connector that overrides custommize, as well as ChannelSelectorConnector)
  

Latest revision as of 19:55, 17 October 2011

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>

Back to the top