blob: c38b728eb9e72c5b516b2ba2dacb2681e36de1f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
server {
listen 443 ssl;
listen [::]:443 ssl;
ssl_certificate /root/ft_services.pem;
ssl_certificate_key /root/ft_services_key.pem;
server_name localhost;
index index.html index.htm;
root /usr/share/nginx/html;
location / {
try_files $uri $uri/ =404; # if uri or uri/ not valid, 404 error
}
}
server {
listen 80;
listen [::]:80;
server_name localhost;
index index.html index.htm;
root /usr/share/nginx/html;
location / {
try_files $uri $uri/ =404; # if uri or uri/ not valid, 404 error
}
#return 301 https://$host$request_uri;
}
|