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.

2 Answers
2

The first warning is probably the answer. You have NameVirtualHost defined as *:80, however by the looks of things you have <VirtualHost *:*> or similar rather than <VirtualHost *:80> on the bit of config defining each virtual host.

If I comment out NameVirtualHost *:80 (which I found in ports.conf) and restart apache, that warning goes away. My problem persists though. What did you mean about the double quotes?
–
grenadeJan 5 '11 at 13:54

@grenade: You need both of the commands, but the commands must match, they all need to be *:* or all need to be *:80
–
DerfKJan 5 '11 at 13:59

Thanks @DerfK, I've fixed that now (everything is *:80) and the warnings have gone away --That always puzzled me. However, I still have the problem that all the domains are resolving to openancestry.org. I'm convinced that Mindtouch added another directive which causes this as openancestry.org was the one where mindtouch was installed.
–
grenadeJan 5 '11 at 14:04

It's probably going there first as it's the first alphabetically and there's no more specific match in any of the other vhost config files. If you want a "default" host, create a vhost file the same as the others with no ServerName or ServerAlias defined, and point it to the DocumentRoot where you'd prefer domains to be pointed by default.
–
Niall DoneganJan 5 '11 at 14:08

@Grenade Sorry to hear you are having issues with MindTouch. If you followed the instructions on the wiki page then you could always try "a2dissite dekiwiki" and "a2ensite default" to see if that fixes it. MindTouch does use the sites-enabled symlinks to manage hosts, but it might just be the case that you have a wildcard on the first apache vhost. Let me know if the above helps.