2019-02-10 22:15:33 +01:00
|
|
|
server {
|
|
|
|
listen [::]:80;
|
|
|
|
listen 80;
|
|
|
|
|
|
|
|
server_name www.server.localhost;
|
|
|
|
|
|
|
|
return 301 $scheme://server.localhost$request_uri;
|
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen [::]:80;
|
|
|
|
listen 80;
|
|
|
|
|
|
|
|
server_name server.localhost;
|
|
|
|
|
|
|
|
root /var/www/server.localhost;
|
|
|
|
|
|
|
|
include h5bp/basic.conf;
|
|
|
|
|
|
|
|
gzip_min_length 1;
|
|
|
|
|
2019-03-15 19:01:48 +01:00
|
|
|
include h5bp/security/content-security-policy.conf;
|
2019-02-10 22:15:33 +01:00
|
|
|
include h5bp/location/web_performance_filename-based_cache_busting.conf;
|
2019-03-09 15:08:44 +01:00
|
|
|
include h5bp/location/web_performance_svgz-compression.conf;
|
2019-02-10 22:15:33 +01:00
|
|
|
include h5bp/errors/custom_errors.conf;
|
|
|
|
|
|
|
|
location ~* /test-pre-gzip {
|
|
|
|
gzip_static on;
|
|
|
|
}
|
|
|
|
}
|