> We're using cgi.server_name to build the local URL's we use. > I'm a little nervous about depending on a cgi variable for > such important stuff, but it seems to be coming through > robustly from our web server, iPlanet. I set the default > values for our Production server. > > Other folks here have had good success with cgi.http_host. > > What's been your experience with cgi.server_name and > cgi.http_host? Are they robust?
The variable CGI.SERVER_NAME is pretty common across various web servers I've seen. The variable CGI.HTTP_HOST will only exist if two things are true: 1. The browser being used is relatively new, and supports the Host header name standard, and 2. the user typed in a name, rather than an IP address. Most of the time, of course, both of those are true, and very often, the host header may be required by a web server. Requiring the host header allows you to bind multiple virtual servers to a single IP address, and then the web server uses the Host header to determine which one the user actually wants to go to. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ______________________________________________________________________ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

