Debian’s Apache Tricks
Kevin Day, November 1st, 2007I’ve been moving this blog and other sites onto one Ubuntu box using Apache virtual hosts.
One problem I had was getting multiple sites to work properly with Debian’s setup of having a separate config file for each site. It wasn’t until I found this blog post about installing WordPress on Ubuntu that I found that you need to create a file named virtual.conf with one line: NameVirtualHost *.
If you’re running into the same problem, check out his blog post and also the Debian Administration article on virtual hosts.
Also, instead of using a .htaccess file to get pretty urls for WordPress, you can instead put them in the virtual host config file between <Directory></Directory> tags.
