Forum Moderators: phranque
I am trying to achieve soemthing like below, obviously the below doesn't work as the last Directory statement is the one used
# allow directory browsing from the internal network
<Directory /var/www/template>
Options Indexes
allow from #*$!.#*$!.#*$!.xx
</Directory>
<Directory /var/www/template>
Options -Indexes
</Directory>
In httpd.conf:
<Directory /var/www/template>
Options Indexes FollowSymLinks
</Directory>
#
RewriteEngine on
# If request is not from an internal network address,
# rewrite any directory index request to an html page
RewriteCond %{REMOTE_ADDR} !^192\.168\.
RewriteCond %{REMOTE_ADDR} !^10\.
RewriteCond %{REMOTE_ADDR} !^127\.0\.0\.1$
RewriteRule ^/(index\.html)?$ /index_page_for_external_visitors.html [L]
Jim