httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Blomstrom <>
Subject Re: [users@httpd] I need some LOCAL Virtual Host Examples
Date Fri, 07 May 2004 03:34:16 GMT

--- Scott Haneda <> wrote:
> on 05/06/2004 07:24 PM, David Blomstrom at
> wrote:

> Your computer knows nothing about the host
> geosymbols, it is not even really
> a valid hostname.  If you look in
> c:\winnt\system32\drivers\etc you should
> see a file called Hosts.
> Add a line in there of
> Or name it whatever you want.
> Then, your v-host container would be:
> ServerName

OK, I found the file c:\windows\system32\drivers\etc,
opened it with Notepad and added the line. The entire
file now looks like this:

# Copyright (c) 1993-1999 Microsoft Corp.
# This is a sample HOSTS file used by Microsoft TCP/IP
for Windows.
# This file contains the mappings of IP addresses to
host names. Each
# entry should be kept on an individual line. The IP
address should
# be placed in the first column followed by the
corresponding host name.
# The IP address and the host name should be separated
by at least one
# space.
# Additionally, comments (such as these) may be
inserted on individual
# lines or following the machine name denoted by a '#'
# For example:
#          #
source server
#              # x
client host       localhost

Then I went back into Apache's httpd file and changed
the ServerName to match:

<VirtualHost *>
    DocumentRoot c/sites/geosymbols

But I still don't understand how to set up
DocumentRoot; I don't see anything in Apache's
examples that resemble a path on a local machine.


Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs 

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message