# virtual host for: # {_VHOST_} server { # define listen port listen 443 ssl; listen [::]:443 ssl; # enable http2 http2 on; # switch server tokens off - this does not enhance security, but it makes work harder for an attacker server_tokens off; # include ssl configuration include sites-include/ssl_{_VHOST_}.conf; # match all server names for a specific domain with and without subdomain parts server_name {_VHOST_} ; # define document root root /var/www/files; # define logging access_log /var/log/nginx/600_{_VHOST_}_ssl.access_log; error_log /var/log/nginx/600_{_VHOST_}_ssl.error_log warn; # define index files - at least one must be defined index index.html index.htm index; location / { # First attempt to serve request as file, then # as directory, then fall back to displaying a 404. try_files $uri $uri/ =404; autoindex on; } }