aboutsummaryrefslogtreecommitdiff
path: root/srcs/nginx/src/ft_services.conf
diff options
context:
space:
mode:
Diffstat (limited to 'srcs/nginx/src/ft_services.conf')
-rw-r--r--srcs/nginx/src/ft_services.conf7
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;
}