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

35 lines
804 B
Nginx Configuration File
Raw Normal View History

2019-02-10 22:15:33 +01:00
server {
2023-05-24 22:58:05 +02:00
listen [::]:443 quic reuseport;
listen 443 quic reuseport;
2019-02-10 22:15:33 +01:00
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 {
2023-05-24 22:58:05 +02:00
listen [::]:443 quic reuseport;
listen 443 quic reuseport;
2019-02-10 22:15:33 +01:00
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;
}