Apache mod_rewrite CGI Variables in ColdFusion
I have an environment that consists of Apache 2.2.8 and ColdFusion 8 running on Solaris 10.
I am attempting to pass a CGI variable to ColdFusion as part of an Apache Rewrite rule, however I am not able to do so.
The Rewrite rule set exists as follows:
RewriteCond %{SSL:SSL_PROTOCOL} ^TLSv1$
RewriteCond %{HTTP_REFERER} !^$ [NC]
RewriteRule ^.*$ %{HTTP_REFERER}?result=pass [L,R,E=HTTP_MYVAR:rw]
The rule set works with the exception of the availability of the CGI variable HTTP_MYVAR within the ColdFusion CGI scope.
I am testing for the existance of the variable within ColdFusion as follows:
<cfif (structkeyexists(cgi, 'CGI.HTTP_MYVAR'))>
CGI.HTTP_MYVAR exists as:<cfoutput>#CGI.HTTP_MYVAR#</cfoutput>
<cfelse>
CGI.HTTP_MYVAR does not exist.
</cfif>
Does anyone have experience creating variables in an Apache Rewrite rule set and evaluating them in ColdFusion?
Thanks in advance for any assistance.
