[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

apache2 virtual hosts only displaying default site



Hello,

I'm having a problem where only the default site is being displayed by apache. If I visit http://deb01/ I get the content in directory "a". If I visit http://test/ I get the content in directory "a", when I'm expecting to get the content from directory "b".

The reliant web server versions are: Apache/2.2.3 (Debian) PHP/5.2.0-8+etch10 mod_ssl/2.2.3 OpenSSL/0.9.8c.

I've included some other information below that may be reliant. Does anyone know what's wrong with my setup?

TIA,
Craig.


deb01:/home/craig#cat /etc/apache2/sites-enabled/000-default
NameVirtualHost *

<VirtualHost *>

        Servername deb01
        ServerAdmin webmaster@localhost
        Documentroot /home/craig/www/a
        CustomLog /var/log/apache2/access.log combined
        IndexOptions FancyIndexing FoldersFirst IgnoreCase VersionSort

</VirtualHost>


deb01:/home/craig#cat /etc/apache2/sites-enabled/test
<VirtualHost test:80>

        Servername test
        ServerAdmin webmaster@localhost
        Documentroot /home/craig/www/b
        CustomLog /var/log/apache2/access.log combined
        IndexOptions FancyIndexing FoldersFirst IgnoreCase VersionSort

</VirtualHost>



deb01:/home/craig#ls -lARh /home/craig/www/
/home/craig/www/:
total 12K
drwxr-xr-x 2 root www-data 4.0K 2008-05-07 11:51 a
drwxr-xr-x 2 root www-data 4.0K 2008-05-07 11:51 b

/home/craig/www/a:
total 4.0K
-rw-r--r-- 1 root www-data 2 2008-05-07 11:51 a.html

/home/craig/www/b:
total 4.0K
-rw-r--r-- 1 root www-data 2 2008-05-07 11:51 b.html


deb01:/home/craig# ls -lA /etc/apache2/mods-enabled/
total 0
lrwxrwxrwx 1 root root 28 2008-05-06 11:51 alias.load -> ../mods-available/alias.load lrwxrwxrwx 1 root root 33 2008-05-06 11:51 auth_basic.load -> ../mods-available/auth_basic.load lrwxrwxrwx 1 root root 33 2008-05-06 11:51 authn_file.load -> ../mods-available/authn_file.load lrwxrwxrwx 1 root root 36 2008-05-06 11:51 authz_default.load -> ../mods-available/authz_default.load lrwxrwxrwx 1 root root 38 2008-05-06 11:51 authz_groupfile.load -> ../mods-available/authz_groupfile.load lrwxrwxrwx 1 root root 33 2008-05-06 11:51 authz_host.load -> ../mods-available/authz_host.load lrwxrwxrwx 1 root root 33 2008-05-06 11:51 authz_user.load -> ../mods-available/authz_user.load lrwxrwxrwx 1 root root 32 2008-05-06 11:51 autoindex.load -> ../mods-available/autoindex.load lrwxrwxrwx 1 root root 26 2008-05-06 12:17 cgi.load -> ../mods-available/cgi.load lrwxrwxrwx 1 root root 26 2008-05-06 11:51 dir.conf -> ../mods-available/dir.conf lrwxrwxrwx 1 root root 26 2008-05-06 11:51 dir.load -> ../mods-available/dir.load lrwxrwxrwx 1 root root 26 2008-05-06 11:51 env.load -> ../mods-available/env.load lrwxrwxrwx 1 root root 27 2008-05-06 11:51 mime.load -> ../mods-available/mime.load lrwxrwxrwx 1 root root 34 2008-05-06 11:51 negotiation.load -> ../mods-available/negotiation.load lrwxrwxrwx 1 root root 27 2008-05-06 12:20 php5.conf -> ../mods-available/php5.conf lrwxrwxrwx 1 root root 27 2008-05-06 12:20 php5.load -> ../mods-available/php5.load lrwxrwxrwx 1 root root 31 2008-05-06 11:51 setenvif.load -> ../mods-available/setenvif.load lrwxrwxrwx 1 root root 26 2008-05-06 15:08 ssl.conf -> ../mods-available/ssl.conf lrwxrwxrwx 1 root root 26 2008-05-06 15:08 ssl.load -> ../mods-available/ssl.load lrwxrwxrwx 1 root root 29 2008-05-06 11:51 status.load -> ../mods-available/status.load


Reply to: