20 lines
620 B
Text
20 lines
620 B
Text
server {
|
|
server_name test1.dc09.ru;
|
|
return 200 "Hello world";
|
|
|
|
listen 443 ssl; # managed by Certbot
|
|
ssl_certificate /etc/letsencrypt/live/test1.dc09.ru/fullchain.pem; # managed by Certbot
|
|
ssl_certificate_key /etc/letsencrypt/live/test1.dc09.ru/privkey.pem; # managed by Certbot
|
|
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
|
|
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
|
|
}
|
|
|
|
server {
|
|
if ($host = test1.dc09.ru) {
|
|
return 301 https://$host$request_uri;
|
|
} # managed by Certbot
|
|
|
|
listen 80;
|
|
server_name test1.dc09.ru;
|
|
return 404; # managed by Certbot
|
|
}
|