From 4bddc52649aba64aae5189881e1332b6f61d5f33 Mon Sep 17 00:00:00 2001 From: ervin Date: Fri, 22 Dec 2023 12:47:51 +0100 Subject: [PATCH] =?UTF-8?q?'default.conf'=20hozz=C3=A1ad=C3=A1sa?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- default.conf | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 default.conf diff --git a/default.conf b/default.conf new file mode 100644 index 0000000..f5a13b8 --- /dev/null +++ b/default.conf @@ -0,0 +1,38 @@ +server { + listen 80; + server_name _; + + root %root%; + index index.php index.html index.htm; + + location = /favicon.ico { + access_log off; + log_not_found off; + } + + if ($is_webp) { + set $img_sufix ".webp"; + } + + location /thb/ { + try_files $uri$img_sufix /resize.php?$uri$img_sufix; + } + + location / { + try_files $uri $uri/ /index.php$is_args$args; + } + + location ~ \.php$ { + include fastcgi_params; + fastcgi_pass unix:/run/php/php8.2-fpm.sock; + fastcgi_index index.php; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + fastcgi_param PATH_INFO $fastcgi_path_info; + fastcgi_param SCRIPT_NAME $fastcgi_script_name; + } + + location ~ /\.ht { + deny all; + } +} +