httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Malton <>
Subject [users@httpd] VirtualHosts not doing what I would like them to.
Date Sun, 10 Apr 2005 06:52:06 GMT
To all,
My VirtualHost directives in httpd.conf for Apache/2.0.53 are not
working as I would expect them to.

What I have is a default website set up on, a second
on and a third for unknown domain.  My
VirtualHost section of httpd.conf looks like this:

|--------BEGIN HTTPD.CONF Snippet---------|

# Use name-based virtual hosting.
NameVirtualHost *:80
# 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 *:80>
    DocumentRoot /var/www_cjsoftuk/
    ErrorLog logs/cjsoftuk-error_log
    CustomLog logs/cjsoftuk-access_log common

<VirtualHost *:80>
    DocumentRoot /var/www/
    ErrorLog logs/udl-error_log
    CustomLog logs/udl-access_log common

<VirtualHost *:80>
    DocumentRoot /var/www_unknown/
    ServerName *
    ErrorLog logs/unknown-error_log
    CustomLog logs/unknown-access_log common

|--------END HTTPD.CONF Snippet---------|

The problem is that the third of these VirtualHost structures is not
working.  It should display index.html from the /var/www_unknown folder,
but it does not.  It just ignores it and displays index.html
from /var/www_cjsoftuk/  which is the folder for default website.

Please help me in this problem because I am new to Apache VirtualHost
settings and I could really do with some help.

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message