Friday, July 10, 2009

Jackalope Apache Virtual Hosts

I had an annoying problem with my Apache virtual hosts when I updated to Juanty Jackalope recently. Any hostname I used to access my server was resulting in the same virtual host serving the page. I lived with it for a week or so by using a2dissite/a2ensite to only enable the virtual host I needed at the time (obviously a poor solution).

I figured it out today. The trick was to go through all of my virtual hosts and change the line:


<VirtualHost *>

to

<VirtualHost *:80>

I hope this helps someone.

No comments:

Post a Comment