hi all, i'm a newbie in apache configuration and i'm experiencing some troubles. when i try to start apache i get the error message NameVirtualHost <ip> has no VirtualHosts for both the two virtualhost. here are virtualhost configuration files:
vh_vimdevr1_https.conf NameVirtualHost 192.168.166.12:443
<VirtualHost 192.168.166.12:443>
ServerName server.name.com
ServerAlias vimdevr1
ServerAdmin admin@domain.com
DocumentRoot "/var/www/html"
ErrorLog "/var/log/httpd/ssl_error_log"
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"%{ctVFPortalID}i\"" combined
CustomLog "logs/ssl_access_log" combined
SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt
SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key
<IfDefine LIMIP>
<Location />
MaxConnPerIP 64
</Location>
</IfDefine>
</VirtualHost>
vh_vimdevr1_http.conf
NameVirtualHost 192.168.166.12:80
<VirtualHost 192.168.166.12:80>
ServerName server.name.com
ServerAlias vimdevr1
ServerAdmin admin@domain.com
DocumentRoot "/var/www/html"
ErrorLog logs/ssl_error_log
CustomLog logs/ssl_access_log combined
<IfDefine LIMIP>
<Location />
MaxConnPerIP 64
</Location>
</IfDefine>
</VirtualHost>
this two files are included in httpd.conf, when i try to check configuration, i get the following
[root@localhost init.d]# ./httpd configtest
[Tue Jan 22 11:04:26 2008] [warn] NameVirtualHost 192.168.166.12:443 has no VirtualHosts
[Tue Jan 22 11:04:26 2008] [warn] NameVirtualHost 192.168.166.12:80 has no VirtualHosts
Syntax OK
i can't understand why i get these error messages, could someone help me please?
thank you