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

2021-07-13 21:36:31 +08:00
 azalon

主域名 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" ""

1033 次点击
所在节点    问与答
2 条回复
yuzo555
2021-07-13 21:54:40 +08:00
> 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
2021-07-13 21:58:59 +08:00
@yuzo555 卧槽,还能这样试,学到了,谢谢哥!

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/789345

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX