只需一步,快速开始
举报
wuxudd 发表于 2024-4-15 13:28 if ( $http_user_agent !~* curl ){ return 301 https://test.com/other/index.html ...
txjcv 发表于 2024-4-15 13:25 这个301是默认lnmp脚本的 http重定向到https的配置
wuxudd 发表于 2024-4-15 13:21 你301不写在 location下,那不等于所有非curl请求都进行一遍301啊,包括已经301跳转的请求。 ...
榆木 发表于 2024-4-15 13:20 if ( $http_user_agent !~* curl ){ return 301 http://test.com/other/index.html;
txjcv 发表于 2024-4-15 13:17 没有套cdn 我是这样的 curl 访问网站就让他默认访问一个 curl.html 无意的空白内容 然后非curl访问的话我 ...
榆木 发表于 2024-4-15 13:15 带套了吧 把套的回源改成 443
本版积分规则 发表回复
Archiver|手机版|小黑屋|全球主机交流论坛
GMT+8, 2024-6-13 06:37 , Processed in 0.063884 second(s), 8 queries , Gzip On, MemCache On.
Powered by Discuz! X3.4
© 2001-2023 Discuz! Team.