27 lines
447 B
Plaintext
27 lines
447 B
Plaintext
|
server {
|
||
|
listen 80;
|
||
|
listen [::]:80;
|
||
|
|
||
|
server_name refs.sfner.com;
|
||
|
|
||
|
include /etc/nginx/snippets/acme.conf;
|
||
|
|
||
|
return 301 https://$server_name$request_uri;
|
||
|
}
|
||
|
|
||
|
server {
|
||
|
listen 443 ssl http2;
|
||
|
listen [::]:443 ssl http2;
|
||
|
|
||
|
server_name refs.sfner.com;
|
||
|
|
||
|
root /var/www/html;
|
||
|
|
||
|
location / {
|
||
|
alias /var/www/refs_sfner/;
|
||
|
try_files $uri $uri/index.html;
|
||
|
}
|
||
|
include /etc/nginx/snippets/tlsgzip.conf;
|
||
|
|
||
|
}
|