0
共享调试器没有从我的网站获取正确的数据,我发现问题是gzip
。nginx禁用gzip仅适用于facebook crawler
我可以禁用gzip for nginx只为Facebook crawler吗?
Inferred Property The 'og:image' property should be explicitly provided, even if a value can be inferred from other tags. Object Missing a Required Value Object at URL 'https://kida.al/13' of type 'website' is invalid because a required property 'og:title' of type 'string' was not provided.
我运行Ubuntu服务器16.04 LTS我得到这个错误:'nginx的:EMERG]“压缩”指令在这里不允许使用在/ etc/nginx/sites-enabled/default:90' –
根据http://nginx.org/en/docs/http/ngx_http_gzip_module.html,gzip指令允许在http,server,location和location中。您需要将“if”块移动到“位置”块中以使其工作。 –
如果在/etc/nginx/nginx.conf中不允许使用“伪指令”,那么我把它放在'http'里面,现在错误是'nginx:[emerg]“,nginx:配置文件/ etc/nginx/nginx。 conf test failed' –