From 4e7e284e7c0a1f0299e99f598d0a81ca565acb19 Mon Sep 17 00:00:00 2001 From: Vincent Letourneau Date: Thu, 28 Sep 2017 11:13:11 +0200 Subject: [PATCH] Rename default.template --- etc/nginx/default.template.conf | 48 +++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 etc/nginx/default.template.conf diff --git a/etc/nginx/default.template.conf b/etc/nginx/default.template.conf new file mode 100644 index 0000000..2a48589 --- /dev/null +++ b/etc/nginx/default.template.conf @@ -0,0 +1,48 @@ +# Nginx configuration + +server { + listen 80 default_server; + listen [::]:80 default_server; + server_name ${NGINX_HOST}; + + index index.php index.html; + error_log /var/log/nginx/error.log; + access_log /var/log/nginx/access.log; + root /var/www/html/public; + + location ~ \.php$ { + try_files $uri =404; + fastcgi_split_path_info ^(.+\.php)(/.+)$; + fastcgi_pass php:9000; + fastcgi_index index.php; + include fastcgi_params; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + fastcgi_param PATH_INFO $fastcgi_path_info; + } +} + +# server { +# server_name ${NGINX_HOST}; + +# listen 443 ssl; +# fastcgi_param HTTPS on; + +# ssl_certificate /etc/ssl/server.pem; +# ssl_certificate_key /etc/ssl/server.key; +# ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2; + +# index index.php index.html; +# error_log /var/log/nginx/error.log; +# access_log /var/log/nginx/access.log; +# root /var/www/html/public; + +# location ~ \.php$ { +# try_files $uri =404; +# fastcgi_split_path_info ^(.+\.php)(/.+)$; +# fastcgi_pass php:9000; +# fastcgi_index index.php; +# 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