From e4f934264f9a3a6f887ba10daa456f7d4e538e08 Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Fri, 24 Nov 2023 14:51:18 +0100 Subject: [PATCH] event_web: apply settings needed for engelsystem --- roles/event_web/files/vhost | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/roles/event_web/files/vhost b/roles/event_web/files/vhost index b4bf602..b477436 100644 --- a/roles/event_web/files/vhost +++ b/roles/event_web/files/vhost @@ -51,5 +51,18 @@ server { ssl_certificate_key /etc/nginx/ssl/eh21.easterhegg.eu.key; ssl_certificate /etc/nginx/ssl/eh21.easterhegg.eu.crt; - root /var/www/engel; + root /var/www/engel/public; + + index index.php; + + location / { + try_files $uri $uri/ /index.php?$args; + } + + location ~ \.php$ { + fastcgi_pass unix:/var/run/php/php8.2-fpm.sock; + fastcgi_index index.php; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + include fastcgi_params; + } }