Hallo,
keine ahnung ob mir hier im Board jemand helfen kann aber mir ist kein besseres eingefallen…
ich möchte einen Webserver so Konfigurieren das Grundsätzlich Directory Listings deaktiviert sind und nur für eine Spezielle IP Addresse erlaubt ist.
hat jemand ne idee wie sowas funktionieren könnte?
aktuelle config:
Options -Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
Gruß
Hallo Phillip,
ich kann dir leider auch nicht helfen.
Versuchs aber mal im Brett „Server-Software“, dort schreiben die Spezialisten für Apache.
Grüsse max
Hallo Phillip !
Es reicht, wenn du den Eintrag ‚Indexes‘ aus den Options nimmst:
Options FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
Das Mischen von Option-Direktiven mit und ohne vorangestelletes ‚-‘ bzw. ‚+‘ ist jedenfalls keine gültige Syntax!
Aus der Apache-Dokumetation:
http://httpd.apache.org/docs/2.0/mod/core.html#direc…
…
Normally, if multiple Options could apply to a directory, then the most specific one is used and others are ignored; the options are not merged. (See how sections are merged.) However if all the options on the Options directive are preceded by a + or - symbol, the options are merged. Any options preceded by a + are added to the options currently in force, and any options preceded by a - are removed from the options currently in force.
Warning:
Mixing Options with a + or - with those without is not valid syntax, and is likely to cause unexpected results.
For example, without any + and - symbols:
Options Indexes FollowSymLinks
Options Includes
then only Includes will be set for the /web/docs/spec directory. However if the second Options directive uses the + and - symbols:
Options Indexes FollowSymLinks
Options +Includes -Indexes
then the options FollowSymLinks and Includes are set for the /web/docs/spec directory.
Note
Using -IncludesNOEXEC or -Includes disables server-side includes completely regardless of the previous setting.
The default in the absence of any other settings is All.