V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
azalon
V2EX  ›  问与答

为什么我的副域名会在浏览器自动跳转到我的主域名上?

  •  
  •   azalon · 2021-07-13 21:36:31 +08:00 · 1051 次点击
    这是一个创建于 1255 天前的主题,其中的信息可能已经有所发展或是发生改变。

    主域名 cilicili.icu,副域名 www.cilicli.icu,为什么浏览器输入 www.cilicili.icu 会自动转成 cilicili.icu,我的 nginx 上全查过了,没有设置重定向,连主域名的字段都没出现,但是在访问日志里为什么会有重定向啊,到底哪里出问题了?主域名都已经解绑了还是这样...

    127.0.0.1 - [13/Jul/2021:21:26:37 +0800] "GET / HTTP/1.1" 301 5 "" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36" "" 136.144.41.150 - [13/Jul/2021:21:26:57 +0800] "POST /boaform/admin/formLogin HTTP/1.1" 403 153 "http://27.124.37.185:80/admin/login.asp" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0" "" 136.144.41.150 - [13/Jul/2021:21:26:58 +0800] "" 400 0 "" "" "" 122.238.126.152 - [13/Jul/2021:21:28:42 +0800] "GET / HTTP/1.1" 301 169 "" "Mozilla/5.0 (iPhone; CPU iPhone OS 13_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.5 Mobile/15E148 Safari/604.1" "" 127.0.0.1 - [13/Jul/2021:21:28:45 +0800] "GET / HTTP/1.1" 301 5 "" "Mozilla/5.0 (iPhone; CPU iPhone OS 13_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.5 Mobile/15E148 Safari/604.1" ""

    2 条回复    2021-07-13 21:58:59 +08:00
    yuzo555
        1
    yuzo555  
       2021-07-13 21:54:40 +08:00   ❤️ 1
    > curl -I "https://www.cilicili.icu/" -L
    HTTP/1.1 301 Moved Permanently
    Server: nginx/1.19.9
    Date: Tue, 13 Jul 2021 13:53:06 GMT
    Content-Type: text/html; charset=UTF-8
    Connection: keep-alive
    X-Powered-By: PHP/8.0.3
    Set-Cookie: argon_user_token=4833d4a5adbd9451c481dc805fe31bc7; expires=Fri, 11-Jul-2031 13:53:06 GMT; Max-Age=315360000; path=/
    Set-Cookie: PHPSESSID=e08gevhmhklqep6i1dhmdm8rvk; path=/
    Expires: Thu, 19 Nov 1981 08:52:00 GMT
    Cache-Control: no-store, no-cache, must-revalidate
    Pragma: no-cache
    X-Redirect-By: WordPress
    Location: https://cilicili.icu/

    WordPress 还算好心的,加了个头告诉你是它干的。
    azalon
        2
    azalon  
    OP
       2021-07-13 21:58:59 +08:00
    @yuzo555 卧槽,还能这样试,学到了,谢谢哥!
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3469 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 04:21 · PVG 12:21 · LAX 20:21 · JFK 23:21
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.