PDA

View Full Version : Virtual hosting partially broken...


gtnicol
02-08-2004, 03:59 PM
Must be a slight configuration issue, but it seems that the public_html directory isn't being used for a given virtual host. Instead of the index.html in the public_html directory, the following is returned, ene though the content *is* in there.

--------
Welcome to the home of lmnl.net
To change this page, upload your website into the public_html directory
Date Created: Sun Feb 1 23:42:02 2004

ProWebUK
02-08-2004, 06:13 PM
Remove the index.html (if it still exists)

If your index file is any other extension its possible DA will override it.

Chris

gtnicol
02-08-2004, 06:58 PM
This is the funny thing... the index.html in the /home/foo/public_html directory is there, and is correct. I'm not sure why it's not being served out... the apache configuration *looks* OK (as far as an apache configuration file goes that is).

ProWebUK
02-08-2004, 07:01 PM
Can you access anything else in the public_html folder, http://domain.com/image.jpg

or any other files...

Chris

gtnicol
02-08-2004, 08:17 PM
No. I get 404 for everything else. It looks as though the vhost configuration is OK too.

Ordinarily, where does the default page come from? Could it be cached somewhere?

gtnicol
02-08-2004, 08:35 PM
2 more relevant peices of data:

1) vhosts appear to work for other domains (at least, when I edit the default homepage, changes show up).

2) The domain has index.html and index.xml in the public_html directory.

gtnicol
02-08-2004, 10:46 PM
Found it.... turns out I had the domain listed as a domain for 2 different users so vhost loading order became important.