Re: Apache virtual server


Subject: Re: Apache virtual server
From: nathan r. hruby (nhruby@arches.uga.edu)
Date: Sun Nov 18 2001 - 17:46:51 MST


On Sun, 18 Nov 2001, Paul Guba wrote:

> I am trying to configure the virtual nameserver in apache I found a how
> to at apache followed it but not working. I really need a basic guide
> showing examples and where to add info to the httpd,conf file.
>

Virtual name server, or Virtual Web Server?

For the webserver, there's an example in the default httpd.conf that's
installed, it's near the bottom of the file, take a look, as what's there
is really the bare bones for a VHOST. (less /etc/httpd/donf/httpd.conf)

If it's not there (for some odd reason) here's a VHOST directove from one
of my production servers (with critical bits redacted for security
reasons)

# The XXX's are IP address quads
<VirtualHost XXX.XXX.XXX.XXX>
  ServerName ice.uga.edu
  ServerAdmin ice-admin@ice.uga.edu
  DocumentRoot /path/to/docRoot

  ErrorLog /path/to/error.log
  CustomLog /path/to/access_log common

  ErrorDocument 404 /path/to/404/file
  ErrorDocument 403 /path/to/403/file

  <Directory /path/to/docRoot>
    Options +foo +bar -baz
  </Directory>

</VirtualHost>

You also may want to look over the VHOST docs at:
http://httpd.apache.org/docs/vhosts/index.html

I don't think there a Virtual Name server in exsistance, it would umm kind
of defeat it's own purpose :)

-n

-- 
......
nathan hruby - nhruby@arches.uga.edu
computer support specialist
department of drama and theatre
http://www.drama.uga.edu/
......



This archive was generated by hypermail 2a24 : Sun Nov 18 2001 - 17:59:57 MST