I think I've solved this problem. There are two important lines of configuration not already included in the OpenbdJam stack, one of which I already had thanks to a solution to another problem in this support group. The following line needs to be in my *.443 VirtualHost in httpd.conf...
- RequestHeader set X-Forwarded-Proto "https" That also adds a CGI variable that can be called in your code to determine if the user is on an HTTPS connection or not. And the following line needs to be added to the "AddConnector" call in jetty.xml... - <Set name="forwarded">true</Set> *http://dev.eclipse.org/mhonarc/lists/jetty-users/msg01152.html <http://dev.eclipse.org/mhonarc/lists/jetty-users/msg01152.html>* On Friday, January 3, 2014 3:18:12 PM UTC-5, [email protected] wrote: > I'm having a problem where <cflocation url="(relative path)" /> > automatically swaps me from https to http protocol. I have the > latest OpenbdJAM stack installed. We've implemented SSL by adding the > following Virtual Hosts in our httpd.conf file... > > Listen 80 > Listen 443 > <VirtualHost *:80> > ServerName www.ourservername.com > DocumentRoot /opt/openbdjam/webroot > </VirtualHost> > <VirtualHost *:443> > SSLEngine on > ServerName www.ourservername.com > DocumentRoot /opt/openbdjam/webroot > RequestHeader set X-Forwarded-Proto "https" > SSLCertificateFile /pathToCert.cert > SSLCertificateKeyFile /pathToKey.key > SSLCACertificateFile /pathToCA > </VirtualHost> > > My first suspicion is that since Apache and Jetty are communicating across > normal http, Jetty assumes when building <cflocation> that http is the > current protocol. Can anyone confirm or dispute my suspicion and/or offer > a work-around? We do not have this problem on another server that uses > proxying in the Apache virtual hosts to direct different protocols to > different directories, but we were trying to avoid such proxying in this > build in order to reduce complexity and hopefully resolve some connection > issues we've been having. > > > -- -- online documentation: http://openbd.org/manual/ http://groups.google.com/group/openbd?hl=en --- You received this message because you are subscribed to the Google Groups "Open BlueDragon" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
