I'm a little confused about setting up a server with multiple sites.
I have a default site configured
I also have a 2nd site setup and here is that file
Options Indexes FollowSymLinks MultiViews
allow from all
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Allow from all
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
CustomLog /var/log/apache2/access.log combined
Alias /doc/ "/usr/share/doc/"
Options Indexes MultiViews FollowSymLinks
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
I wanted to create a 3rd site so I basically copied the 2nd site and simply changed the directory.
CustomLog /home/robbieb/logs/access.log combined
CustomLog /home/robbieb2/logs/access.log combined
After I enabled the site and attempted to reload apache I got a warning
* Reloading web server config apache2 [Tue Nov 01 13:13:59 2011] [warn] VirtualHost myip:80 overlaps with VirtualHost myip:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Tue Nov 01 13:13:59 2011] [warn] NameVirtualHost 184.108.40.206:80 has no VirtualHosts
I'm not even sure where the 205 ip comes from as its not in my default or other config files.
Also, the default and the original test site both work side by side without any problems even though they have the same ip (just different domains). So now I don't understand why I get this warning about overlapping IP when I created the 3rd site.