[ubuntu] Configuring Apache with MediaWiki

view story

http://ubuntuforums.org – Hi All, This one is proving to be a nuisance for me. Basically, I've installed MediaWiki on 12.04 server ed. Now I've tried changing the document root, ServerName variable in apache and more, but I can't get my server's domain name to resolve to the directory where mediawiki is installed (grr!). So going to let's say foo.bar.com resolves to /var/www. To get to media wiki I have to append it to foo.bar.com/mediawiki. I want to merely type foo.bar.com so it resolves to the mediawiki site. Usually, I create a config file in /etc/apache2/sites-available named with the url and set the doc ro (Hardware)