From 70e09e2716d8c772326c78f01b018b2013d9be67 Mon Sep 17 00:00:00 2001 From: bmen Date: Mon, 30 Sep 2019 08:32:31 +0000 Subject: [PATCH] =?UTF-8?q?=E2=80=9Esite.conf=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- site.conf | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/site.conf b/site.conf index 9ba2acc..a0d9fe3 100644 --- a/site.conf +++ b/site.conf @@ -1,23 +1,17 @@ server { - listen 80 default; - - access_log /var/log/nginx/application.access.log; - + index index.php index.html; + server_name php-docker.local; + error_log /var/log/nginx/error.log; + access_log /var/log/nginx/access.log; root /var/www/html; - index index.php; - - if (!-e $request_filename) { - rewrite ^.*$ /index.php last; - } location ~ \.php$ { - fastcgi_pass php-fpm:9000; + try_files $uri =404; + fastcgi_split_path_info ^(.+\.php)(/.+)$; + fastcgi_pass php:9000; fastcgi_index index.php; - fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; - fastcgi_param PHP_VALUE "error_log=/var/log/nginx/application_php_errors.log"; - fastcgi_buffers 16 16k; - fastcgi_buffer_size 32k; include fastcgi_params; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + fastcgi_param PATH_INFO $fastcgi_path_info; } - } \ No newline at end of file