enable nginx gzip
This commit is contained in:
parent
00ede159b4
commit
4241ad81ba
@ -4,6 +4,14 @@ server {
|
|||||||
server_name localhost;
|
server_name localhost;
|
||||||
|
|
||||||
#access_log /var/log/nginx/host.access.log main;
|
#access_log /var/log/nginx/host.access.log main;
|
||||||
|
gzip on; # 是否开启gzip
|
||||||
|
gzip_buffers 32 4K;
|
||||||
|
gzip_comp_level 5;
|
||||||
|
gzip_min_length 10k;
|
||||||
|
gzip_types application/javascript text/css text/xml;
|
||||||
|
gzip_disable "MSIE [1-6]\.";
|
||||||
|
gzip_http_version 1.1;
|
||||||
|
gzip_vary on;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
root /app;
|
root /app;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user