server {
listen 80;
server_name wiki.example.ru;
return 301 https://$server_name$request_uri; # enforce https
}
server {
server_name wiki.example.ru;
server_name_in_redirect off;
listen 443 ssl http2;
access_log /var/log/nginx/access.wiki.log main;
keepalive_timeout 60;
large_client_header_buffers 4 16k;
location / {
root /var/www/example/wiki;
...
}
}