From 6bb27fd6321c6b2ca2697e9e0575bc2c9169e28a Mon Sep 17 00:00:00 2001 From: Giulio Date: Wed, 20 May 2020 16:28:58 +0200 Subject: [PATCH] Nginx config --- conf/etc/nginx/nginx.conf | 39 +++++++++++++++++++++++++++++++++++++++ conf/nginx.conf | 0 conf/php.ini | 0 3 files changed, 39 insertions(+) create mode 100644 conf/etc/nginx/nginx.conf delete mode 100644 conf/nginx.conf delete mode 100644 conf/php.ini diff --git a/conf/etc/nginx/nginx.conf b/conf/etc/nginx/nginx.conf new file mode 100644 index 0000000..4cb9929 --- /dev/null +++ b/conf/etc/nginx/nginx.conf @@ -0,0 +1,39 @@ +user www-data; +worker_processes 4; + + +events { + worker_connections 1024; +} + +http { + + include mime.types; + default_type application/octet-stream; + sendfile on; + keepalive_timeout 65; + gzip on; + + server { + listen 80; + server_name localhost; + + location / { + root html; + index index.html index.php; + try_files $uri $uri/ =404; + } + + location ~ \.php$ { + fastcgi_split_path_info ^(.+?\.php)(/.*)$; + try_files $fastcgi_script_name =404; + set $path_info $fastcgi_path_info; + fastcgi_param PATH_INFO $path_info; + fastcgi_index index.php; + include fastcgi.conf; + fastcgi_pass unix:/var/run/php-fpm.sock; + } + + } + +} \ No newline at end of file diff --git a/conf/nginx.conf b/conf/nginx.conf deleted file mode 100644 index e69de29..0000000 diff --git a/conf/php.ini b/conf/php.ini deleted file mode 100644 index e69de29..0000000