安装网站LNMP架构,开启 gzip 节省资源带宽,HTTPS让用户浏览器记忆:
修改 vim /etc/nginx/nginx.conf
gzip on;
gzip_comp_level 5;
gzip_types text/plain application/javascript application/x-javascript text/javascript text/xml text/css application/xml image/jpeg image/gif image/png;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;