Skip to content
Snippets Groups Projects
Commit 0a235725 authored by timbastin's avatar timbastin
Browse files

Fixed nginx.conf§

parent be8a1744
No related branches found
No related tags found
No related merge requests found
...@@ -17,15 +17,11 @@ events { ...@@ -17,15 +17,11 @@ events {
worker_connections 1024; worker_connections 1024;
} }
http { http {
include mime.types;
sendfile on;
server { server {
# listen on port 80 and 443 for ipv4 and ipv6 requests # listen on port 80 and 443 for ipv4 and ipv6 requests
listen 80; listen 80;
listen [::]:80; listen [::]:80;
listen 443;
listen [::]:443;
# if the requested hostname does match one of the following, check the location block. # if the requested hostname does match one of the following, check the location block.
server_name localhost tbasti2s.l3montree.com tbasti2s.l3montree.education; server_name localhost tbasti2s.l3montree.com tbasti2s.l3montree.education;
...@@ -34,16 +30,13 @@ http { ...@@ -34,16 +30,13 @@ http {
# always return static files # always return static files
root /www/data; root /www/data;
} }
gzip_static on;
} }
server { server {
# listen on port 80 and 443 for ipv4 and ipv6 requests # listen on port 80 and 443 for ipv4 and ipv6 requests
listen 80; listen 80 default;
listen [::]:80; listen [::]:80 default;
listen 443; server_name _;
listen [::]:443;
# there is no server name provided here - match anything else # there is no server name provided here - match anything else
location / { location / {
......
...@@ -3,15 +3,11 @@ events { ...@@ -3,15 +3,11 @@ events {
worker_connections 1024; worker_connections 1024;
} }
http { http {
include mime.types;
sendfile on;
server { server {
# listen on port 80 and 443 for ipv4 and ipv6 requests # listen on port 80 and 443 for ipv4 and ipv6 requests
listen 80; listen 80;
listen [::]:80; listen [::]:80;
listen 443;
listen [::]:443;
# if the requested hostname does match one of the following, check the location block. # if the requested hostname does match one of the following, check the location block.
server_name localhost tbasti2s.l3montree.com tbasti2s.l3montree.education; server_name localhost tbasti2s.l3montree.com tbasti2s.l3montree.education;
...@@ -20,16 +16,13 @@ http { ...@@ -20,16 +16,13 @@ http {
# always return static files # always return static files
root /www/data; root /www/data;
} }
gzip_static on;
} }
server { server {
# listen on port 80 and 443 for ipv4 and ipv6 requests # listen on port 80 and 443 for ipv4 and ipv6 requests
listen 80; listen 80 default;
listen [::]:80; listen [::]:80 default;
listen 443; server_name _;
listen [::]:443;
# there is no server name provided here - match anything else # there is no server name provided here - match anything else
location / { location / {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment