diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-07-22 13:10:56 +0200 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-07-22 13:10:56 +0200 |
| commit | 35074f3fe5b5f28580ec763481fc248b48426bdc (patch) | |
| tree | 05596381b404157e6739c50291510425a63114ef /srcs/nginx/src/ft_services.conf | |
| parent | 3ee123cfe9a808747342d3cad9d6447f4548a89d (diff) | |
| download | ft_services-35074f3fe5b5f28580ec763481fc248b48426bdc.tar.gz ft_services-35074f3fe5b5f28580ec763481fc248b48426bdc.tar.bz2 ft_services-35074f3fe5b5f28580ec763481fc248b48426bdc.zip | |
Fixing nginx with http/https
Diffstat (limited to 'srcs/nginx/src/ft_services.conf')
| -rw-r--r-- | srcs/nginx/src/ft_services.conf | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/srcs/nginx/src/ft_services.conf b/srcs/nginx/src/ft_services.conf index c38b728..435a12c 100644 --- a/srcs/nginx/src/ft_services.conf +++ b/srcs/nginx/src/ft_services.conf @@ -7,7 +7,7 @@ server { server_name localhost; index index.html index.htm; - root /usr/share/nginx/html; + root /www; location / { try_files $uri $uri/ =404; # if uri or uri/ not valid, 404 error @@ -17,12 +17,13 @@ server { server { listen 80; listen [::]:80; + server_name localhost; index index.html index.htm; - root /usr/share/nginx/html; + root /www; location / { try_files $uri $uri/ =404; # if uri or uri/ not valid, 404 error } - #return 301 https://$host$request_uri; + return 301 https://$host$request_uri; } |
