Page 1 of 1

CAN'T GET INDEX.HTML TO WORK WITH APACHE SERVER

PostPosted: 15. April 2004 22:21
by krueger8
I must to be missing something big-time. I had been using Apache2
using the MSI install pkg previously without problems. Now that I switched to XAMPP, got it up and running just fine, everyting checked out perfectly, it just won'tserve my index.html file for my website. This may be a stupid question, but I am not really knowledgable on this server stuff, and was wondering if XAMPP even recognizes html files?; everything seems to be PHP files; and why can't I get Apache2 to recognize the index.html file in the htdocs on C drive, with httpd.conf set to: DocumentRoot "C:/htdocs". HELP ANYBODY!!

PostPosted: 15. April 2004 23:44
by MAGnUm
.html should work, can you go to http://localhost/index.html on your computer? also where are you serving the index page from ie C:\wampp\htdocs ?

Figured the problem out myself

PostPosted: 17. April 2004 04:48
by krueger8
:?: The index.html file in the XAMPP htdocs folder has a redirect
script to a php file that is never going to open by clicking onto it in its
htdocs location, or at least I never could get it to open that way (it, of course, can open under the localhost through the browser). But,
when you substitute your own index.html file for that one and change
your local server to your www.whatever.com in the html.conf, the index.html is recognized immediately by Apache2 & works just fine as your home page while serving it on the web.

PostPosted: 18. April 2004 01:12
by MAGnUm
yeh, then what is your question. it seems you answered it. and php requires the webserver to run, no dclick like html.

PostPosted: 18. May 2004 05:05
by myhelipad
Try find
Code: Select all
DirectoryIndex
on httpd.conf file, is there index.html on the list or just put index.html on DirectoryIndex.