30 lines
531 B
Nginx Configuration File
30 lines
531 B
Nginx Configuration File
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;
|
|
|
|
include h5bp/location/web_performance_filename-based_cache_busting.conf;
|
|
include h5bp/location/web_performance_svgz-compression.conf;
|
|
include h5bp/errors/custom_errors.conf;
|
|
|
|
location ~* /test-pre-gzip {
|
|
gzip_static on;
|
|
}
|
|
}
|