No NameVirtualHost in httpd conf

During a /etc/init.d/httpd restart, the following is returned:

Stopping httpd: [ OK ]
Flushing IPC Semaphores [ OK ]
Starting httpd: [Sat Sep 17 23:38:25 2005] [warn] VirtualHost 193.238.25.205:80 overlaps with VirtualHost 193.238.25.205:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Sat Sep 17 23:38:25 2005] [warn] VirtualHost 193.238.25.205:80 overlaps with VirtualHost 193.238.25.205:80, the first has precedence, perhaps you need a NameVirtualHost directive

And indeed, NameVirtualHost argument found in any of the httpd config file.
Apache does need NameVirtualHost to function properly if it wants to see the difference between sites on the same IP…

There should be a file
/etc/httpd/conf.d/namevirtualhost.conf
With lines like

NameVirtualHost xx.xx.xx.xx

One line per shared IP address.

Paul

There wasn’t


total 76
-rw-r--r--  1 root  root    517 Sep  9  2004 authz_ldap.conf
-rw-------  1 root  iworx  1049 Sep 16 15:44 basic-it.net.conf
-rw-------  1 root  iworx  1140 Sep 16 15:54 gokkasten-tanzoo.nl.conf
-rw-r--r--  1 iworx iworx   854 Mar 11  2005 iworx.conf
-rw-r--r--  1 root  root   1800 Mar  1  2004 perl.conf
-rw-r--r--  1 root  root    134 Dec 27  2004 php.conf
-rw-r--r--  1 root  root   1276 Feb 27  2004 python.conf
-rw-r--r--  1 root  root  11317 Sep 13 22:29 ssl.conf
-rw-------  1 root  iworx   972 Sep 15 14:58 warp.nl.conf
-rw-r-----  1 root  root    743 Feb 23  2005 watch.conf
-rw-r--r--  1 root  root    333 Feb 29  2004 webalizer.conf

I did now make a /etc/httpd/conf.d/namevirtualhost.conf with just 2 entries:
NameVirtualHost 193.238.25.205:80
NameVirtualHost 193.238.25.206:80

Although I asume I should also add the :443 entries to here for ssl ?

A dedicated IP address is required for SSL so no, you don’t need to add the :443 entries.

Paul

Why would a ded. ip be needed with iWorx ??

We’ve used ssl on shared ip’s on our plesk boxes and still do… just when you use a ssl certificate, then yes… you need a ded. ip.