I installed mindtouch using the instructions here and it seems to have broken my Virtual Host configuration. I have several domains running off the same apache instance and this was working fine but now all my domain names resolve to the virtualhost where mindtouch was installed. So mindtouch made all my domain names point to the new mindtouch instance. Grrr!
I use debians default virtual host mechanisms (sites-enabled, etc). Does anyone know what apache directive mindtouch is using to ruin my vh setup? I've scoured all the conf files and there is nothing obvious in apache2.conf or httpd.conf that would cause the behaviour. Did it create a sym-link somewhere that I should destroy?
I should add that I uninstalled the mindtouch packages already but apache persists in redirecting all domains to the first one mentioned in the sites-enabled folder.
thini:~# apache2ctl -S
[Wed Jan 05 13:39:11 2011] [warn] NameVirtualHost *:80 has no VirtualHosts
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:* www.openancestry.org (/etc/apache2/sites-enabled/openancestry.org:1)
*:* www.pragmantra.com (/etc/apache2/sites-enabled/pragmantra.com:1)
*:* services.pragmantra.com (/etc/apache2/sites-enabled/services.pragmantra.com:1)
*:* www.subversionreports.com (/etc/apache2/sites-enabled/subversionreports.com:1)
*:* www.thijssen.ch (/etc/apache2/sites-enabled/thijssen.ch:1)
Syntax OK
EDIT: after making the corrections suggested by Niall & DerfK I now get this:
thini:/etc/apache2/sites-enabled# apache2ctl -S
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:80 is a NameVirtualHost
default server www.openancestry.org (/etc/apache2/sites-enabled/openancestry.org:1)
port 80 namevhost www.openancestry.org (/etc/apache2/sites-enabled/openancestry.org:1)
port 80 namevhost www.pragmantra.com (/etc/apache2/sites-enabled/pragmantra.com:1)
port 80 namevhost services.pragmantra.com (/etc/apache2/sites-enabled/services.pragmantra.com:1)
port 80 namevhost www.subversionreports.com (/etc/apache2/sites-enabled/subversionreports.com:1)
port 80 namevhost www.thijssen.ch (/etc/apache2/sites-enabled/thijssen.ch:1)
Syntax OK
Whichever file is first in the sites-enabled folder ends up being treated as "default server". It's as if named virtual hosts is disabled.
Resolved with this:
<VirtualHost _default_:80>DocumentRoot /var/www</VirtualHost>