summaryrefslogtreecommitdiff
path: root/public/fs/etc/nginx/vhosts.d/nginx.index.conf.in
blob: 8550195a3ad45e11b1c1048db1a1c5c5d646a2cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
server {
    listen                [::]:80;
    server_name           @sitesubd@;
    return                301 https://$server_name$request_uri;
}

server {
    listen                [::]:443;
    server_name           @sitesubd@;

    location / {
        root              /srv/www/htdocs/@sitezone@/@sitepref@;
        autoindex         on;
        ssi               on;
    }

    ssl_certificate           /srv/webroot/@sitezone@/ssl/fullchain.pem;
    ssl_certificate_key       /srv/webroot/@sitezone@/ssl/privkey.pem;
    ssl_trusted_certificate   /srv/webroot/@sitezone@/ssl/chain.pem;

    include conf.d/ssl_params;
}