gpt4 book ai didi

configuration - nginx 允许所有不起作用

转载 作者:行者123 更新时间:2023-12-04 02:57:07 25 4
gpt4 key购买 nike

我正在尝试允许 pinterest 访问我的开发站点的图像,目前 nginx deny.conf 使用 auth_basic 和允许 IP 列表。那里没有 deny allsatisfy any也在deny.conf中

我将 allow all 添加到我网站的配置并重新启动/重新加载了 nginx,但 pinterest 仍然拒绝访问。

location ^~ ^/(cache|media|static)/ {
allow all;
access_log off;
expires 1y;
}

有什么想法吗?

最佳答案

尝试将 satisfy any; 放入您的配置中。这告诉 nginx 接受 http 身份验证或 IP 限制。默认情况下,当您同时定义两者时,它会期望两者。

http://wiki.nginx.org/HttpCoreModule#satisfy

关于configuration - nginx 允许所有不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16407179/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com