榆木 发表于 2024-4-15 13:15
带套了吧 把套的回源改成 443
txjcv 发表于 2024-4-15 13:17
没有套cdn
我是这样的 curl 访问网站就让他默认访问一个 curl.html 无意的空白内容
然后非curl访问的话我 ...
榆木 发表于 2024-4-15 13:20
if ( $http_user_agent !~* curl ){
return 301 http://test.com/other/index.html;
wuxudd 发表于 2024-4-15 13:21
你301不写在 location下,那不等于所有非curl请求都进行一遍301啊,包括已经301跳转的请求。 ...
txjcv 发表于 2024-4-15 13:25
这个301是默认lnmp脚本的 http重定向到https的配置
wuxudd 发表于 2024-4-15 13:28
if ( $http_user_agent !~* curl ){
return 301 https://test.com/other/index.html ...
欢迎光临 全球主机交流论坛 (https://91ai.net/) | Powered by Discuz! X3.4 |