login
Header Space

 
 

Problems with apache vhosts

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
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?
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Problems with apache vhosts, Pedro de Oliveira, (Fri May 16, 7:05 am)
Re: Problems with apache vhosts, Marc Balmer, (Fri May 16, 7:10 am)
Re: Problems with apache vhosts, Pedro de Oliveira, (Fri May 16, 7:18 am)
Re: Problems with apache vhosts, Marc Balmer, (Fri May 16, 7:21 am)
speck-geostationary