Idiot question on Cheyenne
[1/3] from: greg::schofield::iinet::net::au at: 1-Jan-2009 11:31
I have a problem that is so stupidly simple I am embarrassed to ask about it. Basically
I have either missed the plot entirely or have made a basic error so simple I have not
seen it.
The problem is getting virtual hosting working with Cheyenne. I have tried every combination
I can think of to no avail. I don't think I am even correctly addressing the browser
(<http://locahost/my.vhost.com>, <http://my.vhost.com/>, <http://locahost/~my.vhost.com>,
etc., etc.,). Either I get file not found (Cheyenne internal), or server not found (external).
<http://locahost/my.vhost.com>
I need baby instructions.
What I am trying to achieve is a browser interface to file directories that are either
scattered throughout the local computer or on through the Lan system, At the moment I
can't get an index.html recognised in the same directory as Cheyenne or its www directory.
I may have even got this possibility wrong.
Any help would be gratefully appreciated.
Greg Schofield, Perth.
[2/3] 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 :
[3/3] from: greg::schofield::iinet::net::au at: 2-Jan-2009 7:31
Dockimbel, I see my problem straight off, and many thanks -- everything now working 100%
in under 30 seconds.
I have never dealt with web servers before and have zero knowledge. If I can manage (with
your kind help) anyone can. Cheyenne works well, and working in the Rebol environment
is a delight.
All the best in the new year,
Greg
--- Message Received ---
From: DocKimbel <dockimbel-free.fr>
To: rebolist-rebol.com
Reply-To: rebolist-rebol.com
Date: Thu, 01 Jan 2009 20:20:52 +0100
Subject: [REBOL] Re: Idiot question on Cheyenne
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/==
20
when asked for virtual domain http://my.vhost.com/.
Also, your OS needs to know the mapping between domain names and their==
20
IP addresses. This is done by querying a DNS server (mainly for public==
20
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==
20
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 :
> I have a problem that is so stupidly simple I am embarrassed to ask about
> it. Basically I have either missed the plot entirely or have made a basi
<<quoted lines omitted: 9>>
> at are either scattered throughout the local computer or on through the L
> an system, At the moment I can't get an index.html recognised in the same=
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted