> Is there a more reliable way to determine the domain name 
> than using CGI.server name?
> 
> Specfically, I have multiple domain names pointing to the 
> same folder via IIS and would like to determine which one is 
> in use. I have noted that not all interent users provide the 
> CGI variables which causes a problem.
> 
> Any ideas on a better way to handle it?

CGI.HTTP_HOST tells you what the browser's Host header contains. If you're
using host headers to differentiate requests to multiple virtual servers,
that's what you'd need to look at. On the other hand, if you're using
different IP addresses for your virtual servers, you could detect the
requested IP address instead.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265100
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