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: Stop "index of /" from appearing |
|
Author |
|
smurray
Joined: 03 Jan 2007 Posts: 2
|
Posted: Wed 03 Jan '07 17:14 Post subject: Stop "index of /" from appearing |
|
|
I am running apache2triad on a win 2k server. I'm trying to figure out how to stop the "index of /site_images" page from being displayed. There still needs to be access to it for the pics and such, but I don't want anyone to be able to view the directory.
Thanks,
smurray |
|
Back to top |
|
smurray
Joined: 03 Jan 2007 Posts: 2
|
Posted: Wed 03 Jan '07 19:44 Post subject: |
|
|
Sorry if I didn't explain it too well, I really just need to stop the server generated directory listings. |
|
Back to top |
|
coldasice
Joined: 02 Jan 2007 Posts: 20
|
Posted: Thu 04 Jan '07 0:44 Post subject: |
|
|
not hard look trough ur http.conf
and add a index.php if u use .php
find ur index.html
#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
DirectoryIndex index.html
right below
#
# This should be changed to whatever you set DocumentRoot to.
# |
|
Back to top |
|
|
|
|
|
|