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: Stop "index of /" from appearing
Author
smurray



Joined: 03 Jan 2007
Posts: 2

PostPosted: Wed 03 Jan '07 17:14    Post subject: Stop "index of /" from appearing Reply with quote

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

PostPosted: Wed 03 Jan '07 19:44    Post subject: Reply with quote

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

PostPosted: Thu 04 Jan '07 0:44    Post subject: Reply with quote

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


Reply to topic   Topic: Stop "index of /" from appearing View previous topic :: View next topic
Post new topic   Forum Index -> Apache