From d3a0e53f6ee53388e15e6a3433c38c657e15ef48 Mon Sep 17 00:00:00 2001 From: "info@pi-farm.de" Date: Mon, 22 Jun 2026 10:44:10 +0000 Subject: [PATCH] =?UTF-8?q?nginx-default.conf=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx-default.conf | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 nginx-default.conf diff --git a/nginx-default.conf b/nginx-default.conf new file mode 100644 index 0000000..e0332bc --- /dev/null +++ b/nginx-default.conf @@ -0,0 +1,26 @@ +server { + listen 80 default_server; + root /var/www/nZEDb/www; + index index.php index.html index.htm; + + location / { + try_files $uri $uri/ @rewrites; + } + + location @rewrites { + rewrite ^/([^/\.]+)/([^/]+)/([^/]+)/? /index.php?page=$1&id=$2&subpage=$3 last; + rewrite ^/([^/\.]+)/([^/]+)/?$ /index.php?page=$1&id=$2 last; + rewrite ^/([^/\.]+)/?$ /index.php?page=$1 last; + } + + location ~ \.php$ { + include snippets/fastcgi-php.conf; + fastcgi_pass unix:/run/php/php7.4-fpm.sock; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + include fastcgi_params; + } + + location ~* \.(notif|nzb)$ { + deny all; + } +} \ No newline at end of file