# server for: {_VHOST_} # request from: all 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; # server names to match server_name {_VHOST_} ; # redirect all requests location / { # source: http://nginx.org/en/docs/http/converting_rewrite_rules.html return 301 https://{_REDIRECT_VHOST_}$request_uri; } }