server-configs-nginx/test/vhosts/secure.server.localhost.conf

31 lines
678 B
Nginx Configuration File
Raw Normal View History

2019-02-10 22:15:33 +01:00
server {
listen [::]:443 ssl http2;
listen 443 ssl http2;
server_name www.secure.server.localhost;
2021-06-14 12:43:22 +02:00
include h5bp/tls/ssl_engine.conf;
include h5bp/tls/certificate_files.conf;
include h5bp/tls/policy_balanced.conf;
2019-02-10 22:15:33 +01:00
return 301 $scheme://secure.server.localhost$request_uri;
}
server {
listen [::]:443 ssl http2;
listen 443 ssl http2;
server_name secure.server.localhost;
2021-06-14 12:43:22 +02:00
include h5bp/tls/ssl_engine.conf;
include h5bp/tls/certificate_files.conf;
include h5bp/tls/policy_balanced.conf;
2019-02-10 22:15:33 +01:00
root /var/www/server.localhost;
include h5bp/basic.conf;
include h5bp/errors/custom_errors.conf;
include h5bp/security/strict-transport-security.conf;
}