Good day! I'm OpenBSD's newbie, that live in strange country,called Ukraine.
I have an OpenBSD 4.7 and uncomment httpd_flags="".
Section VirtualHost in httpd.conf looks like this:
##########################################################
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/users/xxx.com.ua
ServerName xxx.com.ua
ServerAlias www.xxx.com.ua
CustomLog logs/xxx.com.ua-access_log common
ErrorLog logs/xxx.com.ua-error_log
# TransferLog "|rotatelogs /var/www/logs/xxx.com.ua-access_log 86400"
</VirtualHost>
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/users/yyy.com.ua
ServerName yyy.com.ua
ServerAlias www.yyy.com.ua
CustomLog logs/yyy.com.ua-access_log common
ErrorLog logs/yyy.com.ua-error_log
</VirtualHost>
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/users/zzz.org.ua
ServerName zzz.org.ua
ServerAlias www.zzz.org.ua
CustomLog logs/zzz.org.ua-access_log common
ErrorLog logs/zzz.org.ua-error_log
</VirtualHost>
###########################################################
Everything is fine and each site is open by their domain name in browser
from any place,
and access/error for each site is loggin in different log-file.
But..I want to see something else in httpd -U output that I have:
# httpd -U
[Thu Nov 18 12:03:19 2010] [warn] VirtualHost *:80 overlaps with
VirtualHost *:80, the first has precedence, perhaps you need a
NameVirtualHost directive
[Thu Nov 18 12:03:19 2010] [warn] VirtualHost *:80 overlaps with
VirtualHost *:80, the first has precedence, perhaps you need a
NameVirtualHost directive
[Thu Nov 18 12:03:19 2010] [warn] NameVirtualHost *:80 has no VirtualHosts
What is the trouble?
Sorry for bad English.
Thanks.