apache vhosts
David A. Bandel
david
Mon May 17 11:42:35 PDT 2004
On Thu, 2 Jan 2003 14:44:56 -0500
begin Douglas J Hunley <doug at hunley.homeip.net> spewed forth:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
[specifics deleted]
>
> can you help
no problem.
You need the following directive:
NameVirtualHost *
Then you need something like the following:
<VirtualHost *>
ServerAdmin info at pananix.com
DocumentRoot /usr/local/apache/htdocs/pananix
ServerName www.pananix.com
ServerAlias pananix.com pananix.com.pa www.pananix.com.pa
</VirtualHost>
Basically, you have a VirtualHost container for every single virtual host
you want visible to the world. If someone accessess your system as
something other than one of the virtual host names listed in a
"ServerName" or "ServerAlias" directive (e.g., uses an IP in the URL),
they'll be sent to the very first virtual host container, so make that
whatever you want as the server default.
So your kids can each have their own virtual host:
jimmie.hunley.homeip.net, suzie.hunley.homeip.net, etc.
Caution: keep your virtual containers separate. Each needs its own
separate DocumentRoot. That way too, you can use ftp "guests" so users
can maintain their own subdirs via ftp (don't forget they'll need a bin/,
lib/, and etc/ subdirs w/ the appropriate files (let me know if you need
help with this too).
After each VirtualHost is defined as above, you'll need to restart Apache.
Most directives are available within Virtual hosts. you can use Options,
Logging, etc, to change any of the defaults higher up in httpd.conf.
Using webmin to do this is a tad confusing until you see what webmin does
and compare it to the httpd.conf file.
Really should copy this to the list, you know (think I will).
Ciao,
David A. Bandel
--
Focus on the dream, not the competition.
-- Nemesis Racing Team motto
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.linux-sxs.org/pipermail/linux-users/attachments/20030102/7a110484/attachment.pgp
More information about the Linux-users
mailing list