tags:

views:

268

answers:

0

I've just set up a new apache 2 install and I'm adding my first virtualhost. I'm seeing some odd behaviour. The virtualhost seems to work, in that if I browse to a URL under the root of my virtualhost in a web browser I get what I expect to see, however if I just go to www.$myhost.com, I get the default apache "It works!" page, which is ironic, because that's exactly what's not happening. If I do www.$myhost.com/index.html, I get the correct page. My DirectoryIndex is set correctly for the virtualhost, and even if it wasn't, the default in mods-enabled is set up to use index.html before anything else. Why is it dropping through to the index.html in the root folder? Why does it pick up the right file when I specifically ask for it, but not when I allow the server to pick the index file? I've googled, but I can't seem to find anyone with the same problem I'm having.

Any help greatly appreciated.

related questions