chore: enforce nginx-only setup and remove .htaccess

This commit is contained in:
2026-04-26 09:50:40 +02:00
parent 5378209fed
commit 3742ad19c2
7 changed files with 12 additions and 14 deletions

View File

@@ -1,5 +0,0 @@
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ web/ [L]
RewriteRule (.*) web/$1 [L]
</IfModule>

View File

@@ -28,6 +28,12 @@ Der Fokus liegt auf klarer Rollen-/Rechtestruktur, Tenant-Scope und einer konsis
- Dompdf (PDF Rendering)
- endroid/qr-code (QR-Code Rendering)
## Webserver-Policy
- Docker-Betrieb ist Nginx-only (Dev + Prod).
- Apache-/`.htaccess`-Regeln werden nicht ausgewertet und sind kein Teil des Laufzeit-Contracts.
- Routing und Front-Controller-Verhalten werden ausschliesslich in `/docker/nginx/default.conf` und `/docker/nginx/prod.conf` gepflegt.
## Schnellstart (Docker)
1. Umgebungsdatei anlegen

View File

@@ -41,6 +41,9 @@ run_step "QG-008 Docs link integrity" \
run_step "QG-008 Docs drift contract" \
bin/docs-drift-check.sh
run_step "Nginx-only .htaccess guard" \
bash -lc 'matches="$(rg --files -g ".htaccess" || true)"; if [[ -n "${matches}" ]]; then echo "[FAIL] .htaccess files are not allowed in Nginx-only setup"; echo "${matches}"; exit 1; fi'
run_step "CSS contract check" \
bin/css-contract-check.sh

View File

@@ -16,4 +16,5 @@ Die Docker-Dokumentation ist in zwei klare Pfade getrennt:
- Für tägliche Entwicklung immer mit `docker-compose.yml` arbeiten.
- Für Serverbetrieb ausschließlich `docker-compose.prod.yml` verwenden.
- Änderungen an Domain/TLS nur in der Produktivdoku und den Produktivdateien pflegen.
- Webserver-Contract ist Nginx-only; `.htaccess` wird im Docker-Betrieb nicht berücksichtigt.
- Nach Start oder Deployment einmal `docker compose exec php php bin/console doctor` ausführen.

View File

@@ -10,6 +10,7 @@ Diese Anleitung bringt die Anwendung lokal schnell und stabil zum Laufen.
- Docker Desktop (oder Docker Engine + Compose)
- Port `8080` (App) und `8081` (phpMyAdmin) sind frei
- Nginx-only Setup: `.htaccess` wird nicht ausgewertet
## Start in 5 Schritten

View File

@@ -11,6 +11,7 @@ Diese Anleitung beschreibt den Betrieb mit Domain auf Basis von `/docker-compose
- DNS zeigt auf den Server (`A/AAAA`)
- Ports `80` und `443` sind offen
- TLS-Zertifikate vorhanden
- Nginx-only Setup: `.htaccess` wird nicht ausgewertet
## Produktionsdateien

View File

@@ -1,9 +0,0 @@
php_flag display_startup_errors on
php_flag display_errors on
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>