phpweb
07-12-2007, 12:54 PM
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>
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>