Apache Konfiguration - error_pages

Mutti

Member
Hallo zusammen, ich bräuchte mal wieder das Schwarmwissen in diesem Forum.

DIe u.s. Apache Konfiguration führt dazu das die error_pages auch nicht mehr abrufbar sind
bz

Diverse Versuche mit RewriteCond brachten leider keinen Erfolg.

Für eine Lösung, vielen Dank voraus. :)

Code:
<LocationMatch "/(cgi-bin|phpmyadmin|cyberscan|.*\.html)">
    Require all denied
</LocationMatch>

Code:
    # Benutzerdefinierte Fehlerseiten
    ErrorDocument 403 /error_pages/403.html
    ErrorDocument 404 /error_pages/404.html
    ErrorDocument 500 /error_pages/500.html
 
Code:
<LocationMatch "/(cgi-bin|phpmyadmin|cyberscan|.*\.html)">
    Require all denied
</LocationMatch>
Warum nutzt du LocationMatch und nicht das dafür vorgesehene Files/Directory?

<Location> sections operate completely outside the filesystem. This has several consequences. Most importantly, <Location> directives should not be used to control access to filesystem locations.

Und dann wäre es gut, wenn du den Zugriff auf die ErrorDocuments noch erlaubst, sonst kann die nämlich keiner sehen.

--
.A.
 
Back
Top