diff --git a/etc/nginx/default.conf b/etc/nginx/default.conf index 81fb278..1088f8f 100644 --- a/etc/nginx/default.conf +++ b/etc/nginx/default.conf @@ -21,28 +21,28 @@ server { } } -server { - server_name localhost; +# server { +# server_name localhost; - listen 443 ssl; - fastcgi_param HTTPS on; +# 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; +# 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; +# 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 +# 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 diff --git a/etc/nginx/default.template b/etc/nginx/default.template index f8d4819..1088f8f 100644 --- a/etc/nginx/default.template +++ b/etc/nginx/default.template @@ -3,7 +3,7 @@ server { listen 80 default_server; listen [::]:80 default_server; - server_name ${NGINX_HOST}; + server_name localhost; index index.php index.html; error_log /var/log/nginx/error.log; @@ -21,28 +21,28 @@ server { } } -server { - server_name ${NGINX_HOST}; +# server { +# server_name localhost; - listen 443 ssl; - fastcgi_param HTTPS on; +# 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; +# 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; +# 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 +# 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