31 lines
686 B
Nginx Configuration File
31 lines
686 B
Nginx Configuration File
server {
|
|
listen [::]:443 ssl http2;
|
|
listen 443 ssl http2;
|
|
|
|
server_name www.secure.server.localhost;
|
|
|
|
include h5bp/ssl/ssl_engine.conf;
|
|
include h5bp/ssl/certificate_files.conf;
|
|
include h5bp/ssl/policy_intermediate.conf;
|
|
|
|
return 301 $scheme://secure.server.localhost$request_uri;
|
|
}
|
|
|
|
server {
|
|
listen [::]:443 ssl http2;
|
|
listen 443 ssl http2;
|
|
|
|
server_name secure.server.localhost;
|
|
|
|
include h5bp/ssl/ssl_engine.conf;
|
|
include h5bp/ssl/certificate_files.conf;
|
|
include h5bp/ssl/policy_intermediate.conf;
|
|
|
|
root /var/www/server.localhost;
|
|
|
|
include h5bp/basic.conf;
|
|
include h5bp/errors/custom_errors.conf;
|
|
|
|
include h5bp/security/strict-transport-security.conf;
|
|
}
|