While I'm waiting for an answer to my previous question, here's my real
question:
I am using ColdFusion and JRun with apache/mod_ssl, and when I am on an
https page, the HTTPS variable does not show up.
My setup is:
Apache/1.3.11 (Linux)
mod_ssl/2.5.0
OpenSSL/0.9.4
The ports I use are 2080 for http, 2443 for https.
I have two virtual hosts set up (say, vhost1 and vhost2).
I can successfully access https://vhost1:2443/webapp/secure/login.cfm
However under ColdFusion, the HTTPS variable does not get set. And when
I successfully visit a .jsp page under JRun, the java servlet method
request.getScheme() returns "http" instead of "https".
I have definitions for both:
<VirtualHost 192.168.22.15:2443>
ServerName vhost1
Port 2443
...
<IfDefine SSL>
...
SSLEngine on
<Directory "/webroot/webapp/secure">
SSLOptions +StdEnvVars
</Directory>
...
</IfDefine>
...
</VirtualHost>
and
<IfDefine SSL>
...
<VirtualHost _default_:2443>
ServerName www.mydomain.com
...
SSLEngine on
<Directory "/webroot/webapp/secure">
SSLOptions +StdEnvVars
</Directory>
...
</VirtualHost>
...
</IfDefine>
The location of the <IfDefine SSL> is inverted between the two
definitions, but should that make any difference?
Now, why doesn't the HTTPS variable show up in ColdFusion? I am hoping
that fixing this will also fix the problem with JRun.
cc
P.S. I have sanitized the above scenario for ease of reading. In case
there is some detail which is getting cleansed away, here is the
complete dump of CGI variable seen by ColdFusion:
CGI Variables:
AUTH_TYPE=
CF_TEMPLATE_PATH=/home/ccobb/VControl/EC21/webroot/ec21/ec21s/login.cfm
CONTENT_LENGTH=
CONTENT_TYPE=
HTTP_ACCEPT=image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
image/png, */*
HTTP_ACCEPT_CHARSET=iso-8859-1,*,utf-8
HTTP_ACCEPT_ENCODING=gzip
HTTP_ACCEPT_LANGUAGE=en
HTTP_CONNECTION=Keep-Alive
HTTP_COOKIE=CFID=3; CFTOKEN=20629664
HTTP_HOST=ec21ccobb:2443
HTTP_REFERER=http://ec21ccobb:2080/ec21/nav.jsp
HTTP_USER_AGENT=Mozilla/4.75 [en] (X11; U; Linux 2.2.16 i686)
PATH_INFO=
PATH_TRANSLATED=
QUERY_STRING=
REMOTE_ADDR=192.168.22.15
REMOTE_HOST=
REMOTE_USER=
REQUEST_METHOD=GET
REQUEST_URI=/ec21/ec21s/login.cfm
SCRIPT_NAME=/ec21/ec21s/login.cfm
SERVER_NAME=ec21ccobb
SERVER_PORT=2443
SERVER_PROTOCOL=HTTP/1.0
SERVER_SOFTWARE=Apache/1.3.11 (Unix) mod_ssl/2.5.0 OpenSSL/0.9.4
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]