On 10/17/06, Richard Cooper <[EMAIL PROTECTED]> wrote:
> I've a system that relies quite heavily on CGI.SERVER_NAME.
>
> Is there a more robust an alternative to this?

I prefer to use CGI.HTTP_HOST.  In Apache - at least with 1.3 a few
years ago - CGI.SERVER_NAME returned the value in the ServerName
directive no matter which virtual host was being accessed.  This may
have been changed by now.  CGI.HTTP_HOST, on the other hand, correctly
identified the host being accessed.

That said, I'm not sure what you mean by a "more robust alternative".

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:256997
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to