[thelist] CF missing apache vars ( was: JavaScript variable into CF variable )

Daniel J. Cody djc at members.evolt.org
Wed Nov 21 13:47:39 CST 2001


jeffy -

your tests are right..

by default, CF is only configured to return:
AUTH_TYPE, CONTENT_LENGTH, CONTENT_TYPE, PATH_INFO, PATH_TRANSLATED, 
QUERY_STRING, REQUEST_URI, REMOTE_ADDR, REMOTE_HOST, REMOTE_USER, 
SCRIPT_NAME, SERVER_NAME, SERVER_PORT, SERVER_PROTOCOL, SERVER_SOFTWARE, 
            REQUEST_METHOD, HTTP_REFERER, HTTP_USER_AGENT

from apache. so REDIRECT_QUERY_STRING for example, wouldn't be in the 
CGI scope(or whatever its called) that CF returns unless you *manually* 
add it and recompile the CF module. this, afaik, is a CF bug. or 
'feature' if thats whatcha wanna call it :)

anyways, to answer your question, i had to add that enviornment variable 
to the module and recompile it because at the time, CF didn't recognize 
REQUEST_URI by default, although in 4.5.1SP2 and up, it does.

if that doesn't answer the question, lemme know and i'll pick it up 
faster with the new subject :)

.djc.

.jeff wrote:

> martin,
> 
> 
>><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
>>From: martin.p.burns at uk.pwcglobal.com
>>
>>This is taken from
>>http://httpd.apache.org/docs/custom-error.html
>>
>>Now whether CF picks these up, I can't tell you. But
>>Apache provides them.
>><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
>>
> 
> it doesn't appear to from my tests.
> 
> there is a variable that contains information about the current error
> document though -- request_uri.  that was something that was added though to
> accommodate the evolt.org cms.
> 
> dan, what'd you do to add that environment variable?  (i'll need this for my
> coldfusion search engine friendly urls article i'm working on)






More information about the thelist mailing list