Re: apache2 virtual hosts only displaying default site

2008-05-07 Thread Stefan Fritsch
On Wednesday 07 May 2008, Craig Hurley wrote:
> I'm having a problem where only the default site is being displayed
> by apache.

> 

Try  instead.

For further support, please refer to one of the user support lists, 
see e.g.

http://httpd.apache.org/userslist.html
http://lists.debian.org/debian-isp/
http://lists.debian.org/debian-user/

The apache2 documentation also has a chapter about virtual hosts.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: apache2 virtual hosts only displaying default site

2008-05-12 Thread Craig Hurley

On 07/05/2008 13:22, Craig Hurley wrote:

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 *



Servername deb01
ServerAdmin [EMAIL PROTECTED]
Documentroot /home/craig/www/a
CustomLog /var/log/apache2/access.log combined
IndexOptions FancyIndexing FoldersFirst IgnoreCase VersionSort




deb01:/home/craig#cat /etc/apache2/sites-enabled/test


Servername test
ServerAdmin [EMAIL PROTECTED]
Documentroot /home/craig/www/b
CustomLog /var/log/apache2/access.log combined
IndexOptions FancyIndexing FoldersFirst IgnoreCase VersionSort







I changed the site config files (see below) and everything works as 
expected.


Regards,
Craig.



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



Servername deb01
...






Servername deb01

SSLEngine on

...



deb01:/home/craig#cat /etc/apache2/sites-enabled/test


Servername test
...






Servername test

SSLEngine on

...




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]