Loz,

Add the following to apache config in your port443 virtual host
settings...

RequestHeader set X-Forwarded-Proto "https"

You can check for the existence of the X-Forwarded-Proto header at the
application end.

Paul


On Dec 23, 1:16 pm, Loz <[email protected]> wrote:
> Alan, thanks for the rapid response!
> That is how i used to have it configured. Let me explain the use-case
> a bit more. The site is driving a number of Facebook canvas apps and
> as FB accounts can run in 'secure' (SLL) mode or not we have to
> dynamically switch URL schemes between HTTP/HTTPS depending on user on
> the site.
> I have a bit of code like this:
> <cfset variables.prot="http://";><cfif CGI.HTTPS EQ "on">        <cfset
> variables.prot = "https://";></cfif>
> but as Jetty (in the config you describe) sees HTTP traffic -
> CGI.HTTPS always equals OFF - even for a HTTPS originated request.
> This is the bit i cant sort out - so why i was trying to push the
> HTTPS request back to Jetty. I'm sure there is a solution!
> BestLawrence
> On Dec 23, 11:07 am, "Alan Williamson (aw2.0 cloud experts)"
>
>
>
>
>
>
>
> <[email protected]> wrote:
> > Loz, you only need to handle SSL at the Apache side, not the Jetty side.
>
> > Set Apache up to manage your SSL certificates, which is a well trodden
> > path and i am sure there are tons of HowTo documents out there.   If you
> > find a good, then please share it with us.
>
> > Apache proxy back to Jetty using Port8080 (or whatever port it is set to
> > listen on) using normal HTTP.   That is the usual and very common
> > setup.  Rarely you have the SSL running the whole way through to the
> > backend application servers.
>
> > Loz wrote:
> > > Hi,
>
> > > I am using OpenBDJam to run a service on OBD. I am having trouble
> > > configuring apache SSL / Jetty. I'm guessing that this must be a very
> > > common use-case (i.e. having an OpenBDJam powered site accessed over
> > > SSL). I have tweaked lots of Apache and Jetty sessions but to no
> > > avail....

-- 
online documentation: http://openbd.org/manual/
   google+ hints/tips: https://plus.google.com/115990347459711259462
     http://groups.google.com/group/openbd?hl=en

Reply via email to