bongobongo Posted July 12, 2007 Share Posted July 12, 2007 Files is listed despite use of: Options -Indexes WHY? I have two relevant dirs in my webservers root root/scripts root/test Then I have set up a virtualHost like the one at end of post: I'm using Options -indexes Which work for all directories on local.test.com EXCEPT for the admin folder which still lists all files in that directory (which is actually the files within: root/scripts) if I do not put in a index.php that is. Is there a way for me to prevent the files from beeing listed when entering: local.test.com/admin <VirtualHost *:80> DocumentRoot c:/www/htdocs/test ServerName local.test.com Alias /admin c:/www/htdocs/scripts/ <directory "c:/www/htdocs/test"> Options -indexes </directory> </VirtualHost> Edit/Delete Message Link to comment https://forums.phpfreaks.com/topic/59683-files-is-listed-despite-use-of-options-indexes-why/ Share on other sites More sharing options...
steviewdr Posted July 17, 2007 Share Posted July 17, 2007 Just add: <directory "c:/www/htdocs/scripts"> Options -indexes </directory> -steve Link to comment https://forums.phpfreaks.com/topic/59683-files-is-listed-despite-use-of-options-indexes-why/#findComment-300220 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.