Umm, did you read the full post?  I don't believe cgi.server_name will work.

Greg Saunders



At 09:38 AM 5/12/00 -0700, Billy Cravens wrote:
>cgi.server_name
>
>----- Original Message -----
>From: Greg Saunders <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Friday, May 12, 2000 7:22 AM
>Subject: what is the name of my server?
>
>
>> I'm trying to get the fully qualified name of the server on which CF is
>> running (e.g., myhost.mydomain.com).  I've tried using CGI.SERVER_NAME,
>but
>> this has two problems:
>>
>> 1) if the request comes from within my domain (like
>http://myhost/foo.cfm),
>> the value of CGI.SERVER_NAME is simply "myhost".
>>
>> 2) if the request is the IP address (http://xxx.xxx.xxx.xxx/foo.cfm), then
>> CGI.SERVER_NAME will be the IP address.
>>
>> So how do I get "myhost.mydomain.com"?  I basically want to set a variable
>> "application.serverName", so I only need to get it once, but I don't want
>> to hard-code it.
>>
>> Gregory M. Saunders, Ph.D.
>> Senior Design Architect
>> Cognitive Arts Corporation (http://www.cognitivearts.com)
>> 120 S. Riverside Plaza, Suite 1520
>> Chicago, IL 60606
>>
>> --------------------------------------------------------------------------
>----
>> Archives: http://www.eGroups.com/list/cf-talk
>> To Unsubscribe visit
>http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
>send a message to [EMAIL PROTECTED] with 'unsubscribe' in
>the body.
>
>---------------------------------------------------------------------------
---
>Archives: http://www.eGroups.com/list/cf-talk
>To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
>
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to