View Full Version : Virtual Host errors
minimalist
10th December 2007, 19:29
/etc/cron.daily/logrotate:
[Sun Dec 09 06:25:04 2007] [warn] The Alias directive in /etc/apache2/apache2.conf at line 240 will probably never match because it overlaps an earlier Alias.
[Sun Dec 09 06:25:04 2007] [warn] NameVirtualHost XX.XX.XXX.XXX:80 has no VirtualHosts
I've attached the .conf files. There are some issues that we already spotted like some double entries.
Any advice? Help please?
falko
11th December 2007, 15:24
/etc/cron.daily/logrotate:
[Sun Dec 09 06:25:04 2007] [warn] The Alias directive in /etc/apache2/apache2.conf at line 240 will probably never match because it overlaps an earlier Alias.
The line in question is
Alias /icons/ "/usr/share/apache2/icons/"
Did you check in
/etc/apache2/mods-enabled/*.load
/etc/apache2/mods-enabled/*.conf
/etc/apache2/httpd.conf
/etc/apache2/ports.conf
/etc/apache2/conf.d/
if there's something similar in there?
minimalist
11th December 2007, 17:56
Obviously /etc/apache2/mods-enabled/alias.conf contains the Alias /icons/ "/usr/share/apache2/icons/" just like /etc/apache2/apache2.conf.
What about the second [warn]?
falko
12th December 2007, 16:53
Obviously /etc/apache2/mods-enabled/alias.conf contains the Alias /icons/ "/usr/share/apache2/icons/" just like /etc/apache2/apache2.conf.Comment that one out and restart Apache.
What about the second [warn]?
You can ignore that. It means that you have a NameVirtualHost 82.77.190.212:80 line in your configuration, but no vhosts for 82.77.190.212.
minimalist
13th December 2007, 22:14
Comment that one out and restart Apache.
Did that, thanks!
You can ignore that. It means that you have a NameVirtualHost XX.XX.XXX.XXX:80 line in your configuration, but no vhosts for XX.XX.XXX.XXX.
Fact is all my domains are vhosts for XX.XX.XXX.XXX.
NameVirtualHost XX.XX.XXX.XXX:80
<VirtualHost XX.XX.XXX.XXX:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>
#
#
######################################
# Vhost: www.domain.com:80
######################################
#
#
<VirtualHost XX.XX.XXX.XXX:80>
ServerName www.domain.com:80
ServerAdmin webmaster@domain.com
DocumentRoot /var/www/web4/web
ServerAlias domain.com
DirectoryIndex index.html... and so on...
What am I missing? Can I safely ignore it?
falko
14th December 2007, 14:12
What's the output of ifconfig?
minimalist
15th December 2007, 15:57
root@minimalist:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:13:8F:E0:58:CA
inet addr:XX.XX.XXX.XXX Bcast:XX.XX.XXX.255 Mask:255.255.255.192
inet6 addr: fe80::213:8fff:fee0:58ca/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3154493 errors:0 dropped:0 overruns:0 frame:0
TX packets:1961577 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:451012829 (430.1 MB) TX bytes:2234218694 (2.0 GB)
Interrupt:21 Base address:0x8000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:50299 errors:0 dropped:0 overruns:0 frame:0
TX packets:50299 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:31368465 (29.9 MB) TX bytes:31368465 (29.9 MB)
falko
16th December 2007, 14:35
Do you maybe have NameVirtualHost 82.77.190.212:80 twice in your configuration?
minimalist
16th December 2007, 14:57
That was my first guess too but when I try to comment out the NameVirtualHost directive from Vhosts_ispconfig.conf I get [warn] VirtualHost XX.XX.XXX.XXX:80 overlaps with VirtualHost XX.XX.XXX.XXX:80, the first has precedence, perhaps you need a NameVirtualHost directive errors for all my domains. Obviously there's something elese someplace... I've never messed around with ISPConfig files, only did the regular updates.
falko
17th December 2007, 17:37
What's the output of httpd -t?
minimalist
18th December 2007, 22:35
root@minimalist:~# httpd -t
[Tue Dec 18 22:34:40 2007] [warn] NameVirtualHost XX.XX.XXX.XXX:80 has no VirtualHosts
Syntax OK
falko
19th December 2007, 19:01
Not sure what the problem is, but it's only a warning, so you can ignore it. :)
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.