[REBOL] Re: Idiot question on Cheyenne
From: dockimbel::free::fr at: 1-Jan-2009 20:20
Hi Greg,
You seem confused by what a virtual domain is. A virtual domain is
defined in cheyenne's config file as (for example) :
my.vhost.com [
root-dir %/c/www/
]
That means that Cheyenne will serve content from local folder %/c/www/
when asked for virtual domain http://my.vhost.com/.
Also, your OS needs to know the mapping between domain names and their
IP addresses. This is done by querying a DNS server (mainly for public
names) or looking in local hosts file for name/IP mapping.
So, in order for http://my.vhost.com to respond, the domain
my.vhost.com
must be defined somewhere, in a DNS database or locally
in the hosts file.
On UNIX, hosts file is located at /etc/hosts, on Windows, it's at
%SYSTEM32%/drivers/etc/hosts.
More info about hosts file: http://en.wikipedia.org/wiki/Hosts_file
Hope that helps,
--
DocKimbel
greg.schofield-iinet.net.au a =E9crit :