Nginx开启压缩功能

vim /etc/nginx/nginx.conf

# gzip_vary on;

# gzip_proxied any;

# gzip_comp_level 6;

# gzip_buffers 16 8k;

# gzip_http_version 1.1;

# gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;

重启Nginx sudo systemctl restart nginx

点赞 0

Saiyintai

软件测试工程师

相关推荐

Nginx代理apache2折腾笔记

apache2上面有php服务器已经配置好的。只是想用Nginx代理apache2. Nginx上有Tomat服务器,代理后就相当于有PHP服务器,JSP …