按照你的修改方法还是不行,错误提示是这样的
nginx: [emerg] unknown directive “gzip_static” in /usr/local/nginx/conf/vhost.test.conf:290 configuration file /usr/local/nginx/conf/vhost.test.conf test failed
According to your amendment or not, the wrong suggested that this is the case:
nginx: [emerg] unknown directive “gzip_static” in /usr/local/nginx/conf/vhost.test.conf:290 configuration file /usr/local/nginx/conf/vhost.test.conf test failed