# virtual host for: # undefined vhosts server { # define listen port listen 443 ssl default_server; listen [::]:443 ssl default_server; # 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_common_.conf; # match all server names for a specific domain with and without subdomain parts server_name _ ; # define document root root /var/www/offline; # define logging access_log /var/log/nginx/000_common_ssl.access_log; error_log /var/log/nginx/000_common_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; } }