Can I use Gordano's services to provide standard WWW access for each domain?

  1. Home
  2. Knowledge Base
  3. GMS
  4. Can I use Gordano's services to provide standard WWW access for each domain?

Answer

You can create a WWW folder under each full domain. Please see Knowledge Base Entry 437 for details of how to do this.

To support virtual domains, you will need to check which domain is being requested – this can be done by checking the variable “HTTP_host”. To use this HTTP variable you would need to write some MML code similar to:

a = http_host;
if(a == "www.1.com") || (a == "1.com")
{
do page for www.1.com
}
elseif (a == "www.2.com") || (a == "2.com")
{
do page for www.2.com
}
else
{
do default page
}

The local_hostname variable also works in a similar way.

DNS for the the domains would have to be set up to point to the IP of the main domain that virtual doamins share an IP address with.

See Also:

Keywords:WWW, Web, MML, Port 80, web server, host, hostname, host headers virtual domains

Was this article helpful?

Related Articles