Apache virtual host config

Christopher M Downs cdowns at drippingdead.com
Sat Jun 21 13:56:24 CDT 2003


Kendric,

this is a snip ftrom httpd.conf
--------------------------------------------------------------
    # Use name-based virtual hosting.
#
NameVirtualHost *

<VirtualHost *>
    ServerName libpcap.net
    ServerAlias www.libpcap.net
    ServerAdmin webmaster at libpcap.net
    DocumentRoot /home/websites/libpcap.net
    ErrorLog /home/websites/logs/libpcap.net-error_log
    CustomLog /home/websites/logs/libpcap.net-access_log common
</VirtualHost>

<VirtualHost *>
    ServerName wfawrestling.com
    ServerAlias www.wfawrestling.com
    ServerAdmin webmaster at wfawrestling.com
    DocumentRoot /home/websites/wfawrestling.com
    ErrorLog /home/websites/logs/wfawrestling.com-error_log
    CustomLog /home/websites/logs/wfawrestling.com-access_log common
</VirtualHost>

:
--------------------------------------------------

this is the dir they are running from:
-bash-2.05b$ ls -l /usr/home/websites/
total 10
drwxr-xr-x  3 cdowns  www  512 Jun 20 23:11 drippingdead.com
drwxr-xr-x  2 root    www  512 Jun 20 14:00 libpcap.net
drwxr-xr-x  2 cdowns  www  512 Jun 20 14:00 lifeatzero.com
drwxr-xr-x  2 root    www  512 Jun 20 19:04 logs
drwxr-xr-x  2 root    www  512 Jun 20 14:00 wfawrestling.com
-bash-2.05b$

hope this helps.

~!>D

Kendric Beachey wrote:

>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...
>
>  
>




More information about the Kclug mailing list