Forum Moderators: phranque
I would like to turn directory indexing on for myself from localhost (10.0.0.1) with something like:
<Directory /srv/www/my-websites>
Options None
Options Indexes
Order deny,allow
Deny from all
Allow from 10.0.0.1
# normally with this not be commented out, 10.0.0.3 would have
# the same access to directories as main server 10.0.0.1
Allow from 10.0.0.3
</Directory>
and not allow anyone else on the internet to get a directory listing for the same directory. How do I allow any user on the internet access to the above directory, but without them getting a directory listing like I have from localhost?
Is this possible and if so, how do I go about implementing it? Do I need two separate directory containers for each Options Indexes rule?
TIA
RewriteCond %{REMOTE_ADDR} !^10\.0\.0\.1$
RewriteRule ^/([^/]+/)*$ - [F]
Jim