Loheide-eu-mitarbeiterplatt.../.htaccess
Friederich Loheide f1202bea08
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 7m50s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 7m34s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 5m45s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 5m30s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 7m7s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 7m9s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 6m8s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 6m5s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 48s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m5s
Sicherheitsupdate nach Audit (0.29.0)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-27 11:34:54 +00:00

22 lines
898 B
ApacheConf
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Nur nötig, wenn der Hoster das Installationsverzeichnis selbst als Webroot
# verwendet und sich dieser nicht auf „public/“ umstellen lässt:
# Alle Anfragen werden intern nach public/ geleitet – .env, storage/, vendor/
# usw. sind so von außen nicht erreichbar.
# Diese Datei wird von Aktualisierungen nicht überschrieben (geschützter Pfad).
Options -Indexes
<IfModule mod_rewrite.c>
RewriteEngine On
# Interne Ordner und Dateien nie ausliefern – auch nicht, wenn ihr Pfad „/public/“ enthält
RewriteRule ^(\.env|\.git|app|bootstrap|config|database|plugins|plugins-core|resources|routes|storage|tests|vendor|vendor-dev)(/|$) - [F,L]
RewriteCond %{REQUEST_URI} !/public/
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
# Ohne mod_rewrite lieber gar nichts ausliefern als Konfigurationsdateien.
Require all denied
</IfModule>