Apache virtual host config

Kendric Beachey ak at kc.rr.com
Sat Jun 21 13:36:32 CDT 2003


Any apache wizards out there?

I'm trying to get this machine to serve web pages for two URLs even though the 
two domain names resolve to the same IP address.  This should be possible 
using apache 1.3.27, using this in the config file:

################# Named VirtualHosts
NameVirtualHost *
<VirtualHost *>
ServerName www.beachey.org
ServerAlias beachey.org *.beachey.org
DocumentRoot /home/httpd/htdocs
</VirtualHost>

<VirtualHost *>
ServerName www.jocojedi.org
ServerAlias jocojedi.org *.jocojedi.org
DocumentRoot /home/httpd/htdocs.jocojedi
</VirtualHost>

Shouldn't it?

At the moment www.beachey.org is working fine (as it was when it was the only 
game in town) but www.jocojedi.org just gives a 403 Forbidden for anything 
you request.

The contents of /home/httpd/htdocs.jocojedi are:

kendric httpd # ls -la htdocs.jocojedi/
total 16
drwxr-xr-x    2 apache   apache       4096 Jun 21 08:09 .
drwxr-xr-x    9 root     root         4096 Jun 20 07:02 ..
-rw-r--r--    1 apache   apache        143 Jun 20 07:03 index.html
-rw-r--r--    1 apache   apache        143 Jun 21 08:09 index.php
kendric httpd #

...which looks kosher to me, and looks just like the users/groups/permissions 
in /home/httpd/htdocs.

If there's any other information you need to see, let me know...

-- 
Kendric Beachey
ak at kc.rr.com




More information about the Kclug mailing list