I thought I'd add to this:
http://134.139.143.25/stompy/server.cfm
http://cfdev.cota.csulb.edu/stompy/server.cfm
http://servername/stompy/server.cfm
http://servername.ad.dns.entry/stompy/server.cfm
http://localhost/stompy/server.cfm

all return:

CGI.SERVER_NAME: cfdev.cota.csulb.edu

I do have the servername set to cfdev.cota.csulb.edu in the httpd.conf file.

Mike

Mike Soultanian wrote:
> http://134.139.143.25/stompy/server.cfm
> 
> or
> 
> http://cfdev.cota.csulb.edu/stompy/server.cfm
> 
> both return:
> 
> CGI.SERVER_NAME: cfdev.cota.csulb.edu
> 
> It looks like it returns the name registered in the web server (apache, 
> in my case).  The above addresses both go to the same server.
> 
> Mike
> 
> 
> Ian Skinner wrote:
>> I think I can get the answer faster from this helpful and generous group 
>> of people then I can write one line of code and try it out on a wide 
>> variety of environments.
>>
>> What exactly is cgi.server_name expected to return?  Looking at the 
>> following examples what would you expect to be in this variable?
>>
>> http://calpip-devsite/index.cfm
>>
>> http://calpip.cdpr.ca.gov/index.cfm
>>
>> http://calpip-devsite.inisde.cdpr.ca.gov/index.cfm
>>
>> http://10.104.106.113/index.cfm
>>
>> http://134.186.118.90/index.cfm/
>>
>> TIA
>> Ian
>>
>>
>>
>>
>>
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320465
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to