logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: How do I get the home page to open automatically ?
Author
jgober



Joined: 23 May 2010
Posts: 1
Location: Salem, VA

PostPosted: Sun 23 May '10 18:42    Post subject: How do I get the home page to open automatically ? Reply with quote

OS = Linux
Apache Version = 2.2.11
Cpanel Version = 11.25.0-RELEASE

I am constructing a web site on an Apache Host. I have uploaded the proper files and folders to the correct directory. But when I go to the new domain in IE, all I see is a directory of the HTML files and my images folder.
If I click on the "home" page file (named "index.htm") it displays properly.

My question is...how do I get the home page to open automatically when somebody visits the domain?

Thanks

Admin note:

Please use meaningful, specific subject headers. I changed it for you.
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3092
Location: Hilversum, NL, EU

PostPosted: Sun 23 May '10 19:16    Post subject: Reply with quote

Put in your httpd.conf:

DirectoryIndex index.htm index.html

See: http://httpd.apache.org/docs/2.2/mod/mod_dir.html#directoryindex

Steffen
Back to top


Reply to topic   Topic: How do I get the home page to open automatically ? View previous topic :: View next topic
Post new topic   Forum Index -> Apache