How to deny listing directory service in WAMP?
Posted by: mongtay (---)
Date: September 29, 2006 06:28AM

Hi all,

I've installed WAMP server (newest version) in my Computer (XP SP2) and it's working properly. I setup a new directory under www folder (named: ABC) and when i'm typing the URL below, all files in the ABC directory are listed: [localhost]
You can view this picture describe my problem here: [img221.imageshack.us]
So, how can i deny this "listing service" (dunno what its name grinning smiley)?

Thank for advice!

Options: ReplyQuote
Re: How to deny listing directory service in WAMP?
Posted by: CyberSpatium (67.170.181.---)
Date: September 29, 2006 05:41PM

make an index.html or index.php and put it in your www folder. when you access [localhost] you will now see the index page.

Options: ReplyQuote
Re: How to deny listing directory service in WAMP?
Posted by: mongtay (---)
Date: September 30, 2006 04:18AM

Thank, but can you give me another solution (uhm, maybe i need to config something?)
Bytheway, thank!

Options: ReplyQuote
Re: How to deny listing directory service in WAMP?
Posted by: CyberSpatium (---.hsd1.or.comcast.net)
Date: September 30, 2006 09:42AM

sorry, i made a typo in my last post, do not put your index.html or index.php file in the www folder, put it in your ABC folder. sorry.

Options: ReplyQuote
Re: How to deny listing directory service in WAMP?
Posted by: mongtay (---)
Date: October 03, 2006 05:03AM

Oh, i know, i know. Thank! winking smiley

Options: ReplyQuote
Re: How to deny listing directory service in WAMP?
Posted by: phoenix (---.ipt.aol.com)
Date: October 05, 2006 07:04PM

Alternatively you could generate a .htaccess file and disable the directory listing.

Open a txt editor such as notepad and type in "IndexIgnore *". Then save the file as .htaccess (make sure you set the "save as type" to 'All files' if you are using notepad).

Then place the .htaccess file in the directory that you dont want to list.

Hope that helps,

Andy~

Options: ReplyQuote
Re: How to deny listing directory service in WAMP?
Posted by: mongtay (---)
Date: October 10, 2006 05:17AM

Wah! I did it! Thank you, two!

Options: ReplyQuote


Sorry, only registered users may post in this forum.