index.html not seen?

7 posts / 0 new
Last post
#1 Sun, 01/22/2006 - 06:34
PaulDuffield

index.html not seen?

I have now managed to upload the site(s) to the public_html folder but when I key in http://www.domain.com/ I just get the apache default confirmation page and not the correct index.html page for the web site itself.

if I add the full path to the domain http://www.domain.com/index.html it comes up fine but of course most surfers wont know that.

Am I missing something here? (Ans: clearly yes :-) ) or is there no easy way to ensure that default pages come up when just the domain is typed in?

This issue could extend of course to index.htm, default.htm etc depending on what users upload.

Any ideas (preferably without having to edit what to me are still fairly obscure Linux conf files.

Any tips appreciated.

Paul

Mon, 01/23/2006 - 04:27
GrahamWatts

Hi Paul,

There maybe a complicated reason for this but could it be that the default apache home page is called index.htm and that is what the system finds first as it tries to locate a home page?

Try deleting the default page and see if that helps.

Graham

Mon, 01/23/2006 - 07:23
PaulDuffield

Hi Graham,

Thanks for the reply. I have tried typing in the full url followed by various permutations of inded.htm .php etc and they just come up with blank pages. So I don't think that is it.

I am not sure where (in Virtualmin or indeed elsewhere in Unix) the preferences/config is set for which default page to look for first?

I will look later to see if I can find it in an http.conf file of something. Is there or should there be something for this for Vitualmin though?

Paul

Mon, 01/23/2006 - 08:40
GrahamWatts

Hi Paul,

I fear I may have fed you a red herring with my last reply.

A quick google led me to this page which explains how apache finds the default page. It's probably worth a read.

http://www.linuxhomenetworking.com/linux-hn/apachebasic.htm

Graham

Wed, 01/25/2006 - 12:11
PaulDuffield

Been to the site and manually tried to adjust the httpd.conf file now but still with no result.

The link had some interesting information on it but as far as I can establish the default settings should bring up the index.html page anyway but it apparently doesn't post Virtualmin install. Could it be that Virtualmin has adjusted something else conf file wise?

Any ideas still welcome as the apache holding page isn't getting me too many new clients atm :-(

Paul

Wed, 01/25/2006 - 13:18
Joe
Joe's picture

Hey Paul,

Looking at the log I have from your install, it appears some of the installation failed to happen--I'm looking into why.

But I suspect it dropped out of the post-install script before the httpd virtual setup happened. It's a one-line change in httpd.conf that makes virtual hosts work. It'll be corrected on your box shortly.

--

Check out the forum guidelines!

Wed, 02/01/2006 - 15:50
PaulDuffield

You were of course spot on Joe both in observation and fix - the server has now been running quite happily for a few days and (big touchwood!) everything is really fine and stable.

A big public thank you too for your support which has been first class before, during and after the Virtualmin install.