You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users-de@httpd.apache.org by "Albl, Thomas" <th...@staedtetag.de> on 2002/10/11 09:56:09 UTC

Lösung: +Indexes und -Indexes für verschiedene Server durch allow möglich?

Hi Liste,

in der original apache-Mailingliste habe ich eine Antwort auf meine Frage
erhalten und vielleicht gibt es ja
hier auch jemanden, den das interessiert...
--------------------------------------------------------------------------
I can think of several ways to do this, but they all involve 
mod_rewrite.  Here is one:

RewriteEngine On
RewriteCond %{REMOTE_HOST} ^localhost$ [NC]
RewriteRule (.*) /getindex/$1

Alias /getindex /usr/local/apache/htdocs
<Location /getindex>
Options +Indexes
# Although getindex should never be used externally, we should throw in
# a little access control just for safety.
Order deny,allow
Deny from all
Allow from localhost
</Location>

<Directory /usr/local/apache/htdocs>
Options -Indexes
IndexOptions FancyIndexing
</Directory>

I haven't tested that, but is seems like it should work.

Joshua.
----------------------------------------------------------------------------
--
Mit freundlichem Gruß
Thomas Albl
Deutscher Städtetag
Tel. : 0221/3771-210
FAX  : 0221/3771-128
eMail: mailto:thomas.albl@staedtetag.de
Web  : http://www.staedtetag.de