httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Jackson" <>
Subject RE: Local Server - Virtual Domains
Date Wed, 08 May 2002 18:29:45 GMT
JB --
I'm running Apache-2.0.36,PHP4.2.0 and named bases virtual host, on a local
network. I have 2 Vhost setup and
The box itself is called (Slackware-8.0).

Here is the changes I made to get Vhost working on slacker:

- ------------ /etc/hosts --------------------------------------       localhost slacker meatloaf    dabean     beans
# Note the vhost are listed as aliases for slacker

--------------- httd.conf --------------------------------------
DirectoryIndex index.html index.php

NameVirtualHost *
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#<VirtualHost *>
#    ServerAdmin
#    DocumentRoot /www/docs/
#    ServerName
#    ErrorLog logs/
#    CustomLog logs/ common
<VirtualHost *>
DirectoryIndex index.html index.php
DocumentRoot /home/davej/meatloaf
<VirtualHost *>
DocumentRoot /home/davej/gravy
DirectoryIndex index.html

-------------------------- Notes on Mandrake/RedHat -----------
Redhat,Mandrake and Debian use System V startup scripts.
Take a peek at /etc/network files and /etc/hostname.
Note: The extra directory index in vitural host section shouldn't be
required, but then again they might be....long story

Hope this help.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message