From 0a235725942c37c66732c40a80c8741964ea93f3 Mon Sep 17 00:00:00 2001 From: timbastin <bastin.tim@gmail.com> Date: Tue, 10 May 2022 21:39:44 +0200 Subject: [PATCH] =?UTF-8?q?Fixed=20nginx.conf=C2=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- prak/pr05/README.md | 13 +++---------- prak/pr05/nginx.conf | 13 +++---------- 2 files changed, 6 insertions(+), 20 deletions(-) diff --git a/prak/pr05/README.md b/prak/pr05/README.md index c0d973f..3b2116f 100644 --- a/prak/pr05/README.md +++ b/prak/pr05/README.md @@ -17,15 +17,11 @@ events { worker_connections 1024; } http { - include mime.types; - sendfile on; server { # listen on port 80 and 443 for ipv4 and ipv6 requests listen 80; listen [::]:80; - listen 443; - listen [::]:443; # if the requested hostname does match one of the following, check the location block. server_name localhost tbasti2s.l3montree.com tbasti2s.l3montree.education; @@ -34,16 +30,13 @@ http { # always return static files root /www/data; } - - gzip_static on; } server { # listen on port 80 and 443 for ipv4 and ipv6 requests - listen 80; - listen [::]:80; - listen 443; - listen [::]:443; + listen 80 default; + listen [::]:80 default; + server_name _; # there is no server name provided here - match anything else location / { diff --git a/prak/pr05/nginx.conf b/prak/pr05/nginx.conf index 626b540..86487ae 100644 --- a/prak/pr05/nginx.conf +++ b/prak/pr05/nginx.conf @@ -3,15 +3,11 @@ events { worker_connections 1024; } http { - include mime.types; - sendfile on; server { # listen on port 80 and 443 for ipv4 and ipv6 requests listen 80; listen [::]:80; - listen 443; - listen [::]:443; # if the requested hostname does match one of the following, check the location block. server_name localhost tbasti2s.l3montree.com tbasti2s.l3montree.education; @@ -20,16 +16,13 @@ http { # always return static files root /www/data; } - - gzip_static on; } server { # listen on port 80 and 443 for ipv4 and ipv6 requests - listen 80; - listen [::]:80; - listen 443; - listen [::]:443; + listen 80 default; + listen [::]:80 default; + server_name _; # there is no server name provided here - match anything else location / { -- GitLab