macromedia.coldfusion.advanced_techniques
[Top] [All Lists]

Re: multiple domains pointing to one application

Subject: Re: multiple domains pointing to one application
From: Ian Skinner
Date: Thu, 03 Apr 2008 07:36:46 -0700
Newsgroups: macromedia.coldfusion.advanced_techniques


happysailingdude wrote:
 --part 1--
It seems you're both saying that looking at the CGI vars is the way to go for part 1. I understand from the cfdocs that not all browsers support all of the different cgi vars, does anyone have any first hand experience of this? should i look at cgi.server_name or cgi.http_host?

Slight misunderstanding here. CGI variables come from the web server not the web browser. Yes different servers offer somewhat different sets of CGI variables. Some CGI values are more universal across servers then others. But you should be well aware of what web server (i.e. IIS, Apache, whatever) you are using and can adjust your code accordingly.

 --part 2--
re DNS etc - forgive me this isn't my strong point, so i'll probably ask my host to assist with this, but if anyone could please give me a simple outline of what i'm seeking to achieve re the DNS / hosting etc that would be great as then i can pass that onto my host

DNS is a simple database of domain names matched to IP addresses. So how what we are discussing works is that you make multiple entries into this database, one for each domain name, all pointing to the same IP address of you application.

I.E.
www.southendlocaljobs.co.uk -> 111.222.111.222
www.chelmsfordlocaljobs.co.uk -> 111.222.111.222

There is a bit more to it then this, but your hosting provider is going to understand the details and be able to walk you through this.

<Prev in Thread] Current Thread [Next in Thread>