Gandi Docs

 |   AAA  |    fr   en  

Questions

Configuring your virtual host(s)

A virtual host is a website that is hosted on your HTTP server. A single HTTP server can host multiple websites, all at the same time, hence the term 'virtual'.

During the configuration of your HTTP server, you are asked to provide a "Host Name" (and a "root directory" if you are using the "Advanced server administrator mode").

The "Host name" is the name of the website without the "http://" at the beginning.

For example:

A records for example.com Host Name URL (website home page)
@ 28800 IN A 123.123.123.123 example.com http://example.net
www 28800 IN A 123.123.123.123 www.example.com http://www.example.net
cafex.freesites 28800 IN A 123.123.123.123 eric.friends.example.com http://eric.friends.example.com

Configuring your Domains to point to your server

Note:

In order for your website to be visible, you need to point your domain to the ip address of the server (where can I find this?). For example purposes, let's say this is 123.123.123.123.

You will need to make your A records in the DNS management page for the domain being hosted, where you will need to add A records for each host name.

For example, for the above examples to work, you would need to add the following A records in the DNS zone file for example.com:

@ 28800 IN A 123.123.123.123   
www 28800 IN A 123.123.123.123 
cafex.freesites 28800 IN A 123.123.123.123

You are not limited to just one domain name. You can host anything you want. For example, you could host a website at http://www.example.com, and host your friend's website at http://www.friendswebsite.se, or even a provide free websites fot others while advertising yours, such as http://cafe.freesites.example.com!

Questions

No question on this page and its children.

RSS feed for questions matching this filter (Help)

Last modified: 14 Jan 2008 at 16:55 by Elliott Fox