From 72815ccce0267d357b2c8bba63311bc347ce5d2f Mon Sep 17 00:00:00 2001 From: Stefan Wieczorek Date: Fri, 21 Jan 2022 17:24:13 +0100 Subject: [PATCH] . --- v2/Symfony/Symfony 5 | 12 ++++++------ v2/Symfony/Symfony 6 | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/v2/Symfony/Symfony 5 b/v2/Symfony/Symfony 5 index 6ae77ea..6cfc94b 100755 --- a/v2/Symfony/Symfony 5 +++ b/v2/Symfony/Symfony 5 @@ -11,9 +11,9 @@ server { {{nginx_access_log}} {{nginx_error_log}} - if ($bad_bot = 1) { - return 403; - } + #if ($bad_bot = 1) { + # return 403; + #} if ($scheme != "https") { rewrite ^ https://$host$uri permanent; @@ -26,7 +26,7 @@ server { {{basic_auth}} - try_files $uri $uri/ /index.php?$args; + try_files $uri $uri/ /index.php?$args =404; index index.php index.html; location ~ \.php$ { @@ -38,8 +38,8 @@ server { fastcgi_read_timeout 3600; fastcgi_send_timeout 3600; fastcgi_param HTTPS $fastcgi_https; - {{php_fpm_listener}} - {{php_settings}} + fastcgi_pass 127.0.0.1:{{php_fpm_port}}; + fastcgi_param PHP_VALUE "{{php_settings}}"; } location ~* ^.+\.(css|js|jpg|jpeg|gif|png|ico|gz|svg|svgz|ttf|otf|woff|eot|mp4|ogg|ogv|webm|webp|zip|swf)$ { diff --git a/v2/Symfony/Symfony 6 b/v2/Symfony/Symfony 6 index 6ae77ea..6cfc94b 100755 --- a/v2/Symfony/Symfony 6 +++ b/v2/Symfony/Symfony 6 @@ -11,9 +11,9 @@ server { {{nginx_access_log}} {{nginx_error_log}} - if ($bad_bot = 1) { - return 403; - } + #if ($bad_bot = 1) { + # return 403; + #} if ($scheme != "https") { rewrite ^ https://$host$uri permanent; @@ -26,7 +26,7 @@ server { {{basic_auth}} - try_files $uri $uri/ /index.php?$args; + try_files $uri $uri/ /index.php?$args =404; index index.php index.html; location ~ \.php$ { @@ -38,8 +38,8 @@ server { fastcgi_read_timeout 3600; fastcgi_send_timeout 3600; fastcgi_param HTTPS $fastcgi_https; - {{php_fpm_listener}} - {{php_settings}} + fastcgi_pass 127.0.0.1:{{php_fpm_port}}; + fastcgi_param PHP_VALUE "{{php_settings}}"; } location ~* ^.+\.(css|js|jpg|jpeg|gif|png|ico|gz|svg|svgz|ttf|otf|woff|eot|mp4|ogg|ogv|webm|webp|zip|swf)$ {