What is in the <cfelse> because AKAIK cgi.https is never a 0 length string.
It's either 'on' or 'off'

<cfif cgi.https IS "off">
<cflocation ="https://#cgi.server_name#/#cgi.script_name#"; addtoken="no" />
</cfif>


..:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com

 


-----Original Message-----
From: James Buckingham [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 16, 2006 5:38 AM
To: CF-Talk
Subject: Setting up SSL in CFMX7

Hi everyone,

I'm currently working on migrating our applications from CF5.0 to MX7.02.
I'm running this over a JRun4 multi-server configuration and everything is
up and running apart from the SSL which I'm really struggling with.

The problem I have is coming from a simple bit of code in a onRequestStart
function:

<cfscript>
this.HTTPSecure = #cgi.https#;
</cfscript>
        
<cfif #len(this.HTTPSecure)# eq 0>
<cflocation url="https://localhost:8301/"; addtoken="no"  />
<cfelse>
......
</cfif>

-----------

If I try and run that the browser just sits there thinking about something
and then times out on me. Taking out the secure protocol on the http works
fine.

Things I tried so far are:

1) Tried this on three separate machines and all are showing the same signs

2) Following Adobe's Technotes on setting up SSL and LDAP by importing my
certificates into the C:\JRun4\jre\lib\security\cacerts and confirmed that
they've been installed fine through a command prompt -
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_19139

3)Tried to follow another Technotes about setting up SSL in JRun Web Server
Connector here:
http://www.adobe.com/cfusion/knowledgebase/index.cfm?event=view&id=KC.tn_182
03&extid=tn_18203&dialogID=194654303&iterationID=1&sessionID=4830fc7d7b9e6c9
6bc6c&stateID=1+0+194658323&mode=simple

I'm not sure if this is what I'm meant to be doing though as I'm a complete
JRun newbie.

4) Enabling SSL in java.xml and changing the port address from 9100 to 443. 

I wasn't sure if there might have been a conflict in me calling port 8301
for my Instance through the CFlocation and alos trying to secure at the same
using a different port. I'm assuming when the instance was setup that the
usual port 80 for http requests is just repointed to the instance port 8301?

Does have anybody have any pointers that might help?

Thanks,
James



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:260652
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to