Problems with apache vhosts

Previous thread: glimpse of a miracle [was: GENERIC with new ACPI parser crashes on HP notebook [console log]] by Denis Doroshenko on Friday, May 16, 2008 - 5:22 am. (1 message)

Next thread: Debian libssl security (Cause???) by Ross Cameron on Friday, May 16, 2008 - 7:31 am. (8 messages)
To: <misc@...>
Date: Friday, May 16, 2008 - 7:05 am

Hello,

I'm having a little problem with vhosts with OpenBSD apache, not really a
problem, more a Warning cause everything is working nicely, i just dont like
the warnings.

I created a vhosts.conf in /var/www/conf/modules with the following:

---------vhosts.conf---------
NameVirtualHost *:80

<VirtualHost *:80>
DocumentRoot /htdocs
ServerName domain1.com
</VirtualHost>

<VirtualHost *:80>
DocumentRoot /htdocs/stats
ServerName sub.domain2.com
</VirtualHost>

<VirtualHost *:80>
DocumentRoot /htdocs/blog
ServerName domain2.com
ServerAlias www.domain2.com
</VirtualHost>
---------vhosts.conf---------

Everything works as expected, but when I do a apachectl configtest I get the
following:

# apachectl configtest
Processing config directory: /var/www/conf/modules/*.conf
Processing config file: /var/www/conf/modules/php5.conf
Processing config file: /var/www/conf/modules/vhosts.conf
Warning: DocumentRoot [/htdocs] does not exist
Warning: DocumentRoot [/htdocs/stats] does not exist
Warning: DocumentRoot [/htdocs/blog] does not exist
[Fri May 16 12:03:50 2008] [warn] VirtualHost *:80 overlaps with VirtualHost
*:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Fri May 16 12:03:50 2008] [warn] VirtualHost *:80 overlaps with VirtualHost
*:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Fri May 16 12:03:50 2008] [warn] NameVirtualHost *:80 has no VirtualHosts
Syntax OK

Can anyone help me out figuring a way to remove those warnings?

To: Pedro de Oliveira <falso@...>
Cc: <misc@...>
Date: Friday, May 16, 2008 - 7:10 am

On which version do you see this problem? Are you running -current? If

To: 'Marc Balmer' <mbalmer@...>
Cc: <misc@...>
Date: Friday, May 16, 2008 - 7:18 am

I'm running -current from Mon May 12 10:57:47 WEST 2008.

-----Mensagem original-----
De: owner-misc@openbsd.org [mailto:owner-misc@openbsd.org] Em nome de Marc
Balmer
Enviada: sexta-feira, 16 de Maio de 2008 12:11
Para: Pedro de Oliveira
Cc: misc@openbsd.org
Assunto: Re: Problems with apache vhosts

On which version do you see this problem? Are you running -current? If so,

To: Pedro de Oliveira <falso@...>
Cc: <misc@...>
Date: Friday, May 16, 2008 - 7:21 am

ok, can you please mail in private your full httpd configuration, so

Previous thread: glimpse of a miracle [was: GENERIC with new ACPI parser crashes on HP notebook [console log]] by Denis Doroshenko on Friday, May 16, 2008 - 5:22 am. (1 message)

Next thread: Debian libssl security (Cause???) by Ross Cameron on Friday, May 16, 2008 - 7:31 am. (8 messages)