diff --git a/prak/pr05/README.md b/prak/pr05/README.md index c0d973fbbfa459874cdb6974dc10ff2a1be3a261..3b2116fb12cdcb0bb81e9685d6076f47a0314f0c 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 626b540d9ace7af9932545cad89a415018e1dc46..86487ae4e7b5633d50712315c2d18fa57d411ba8 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 / {