Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
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.
| |
|
Topic: All I get is a directory listing |
|
Author |
|
lannie1
Joined: 02 Jul 2007 Posts: 2 Location: Fort Worth, Texas
|
Posted: Tue 03 Jul '07 20:29 Post subject: All I get is a directory listing |
|
|
I have installed Apache 2.2 on my Widows XP Pro system aloog with
PHOP 5.5. I have tried everything I can think of but when I type in
the url, just get a directory listing of the root on the screen. If I
type in the url and add /index.htm, it works fine, but I want it to automatically go to Index.htm.
I have a 2Wire 1000HW modem/gateway and I have a dummy domain name at no-ip.com.
am also running active Ports but I have trouble understanding exctly what it is telling me.
Any suggestions???
Lannie Walker |
|
Back to top |
|
tdonovan Moderator
Joined: 17 Dec 2005 Posts: 611 Location: Milford, MA, USA
|
Posted: Tue 03 Jul '07 21:26 Post subject: |
|
|
Whether you see a directory listing or an "index" page is controlled by the DirectoryIndex directive in httpd.conf.
You probably want: Code: | DirectoryIndex index.php index.html | so it will run index.php if it exists, else it will show index.html if it exists, else display a directory listing if neither exists.
-tom- |
|
Back to top |
|
lannie1
Joined: 02 Jul 2007 Posts: 2 Location: Fort Worth, Texas
|
Posted: Tue 03 Jul '07 23:31 Post subject: All I get is a directory listing |
|
|
Thanks! I simply added Index.htm to Index.php and index.html and it now works fine. Many thanks!!!! |
|
Back to top |
|
|
|
|
|
|