以后 web 本地开发就用这个域名了 fastadmin.fbi.com

2022-07-03 17:12:11 +08:00
 F4NNIU

之前 web 开发是经常需要修改 hosts ,稍微有点麻烦。

以后 web 本地开发就用这个域名了,hosts 都懒得改了。

ubuntu-20:~$ ping fastadmin.fbi.com
PING fastadmin.fbi.com (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.015 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.071 ms
64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.032 ms
64 bytes from localhost (127.0.0.1): icmp_seq=4 ttl=64 time=0.029 ms
64 bytes from localhost (127.0.0.1): icmp_seq=5 ttl=64 time=0.074 ms

[*.]fbi.com 都是指向 127.0.0.1

8673 次点击
所在节点    程序员
61 条回复
qwerthhusn
2022-07-04 09:03:51 +08:00
F4NNIU
2022-07-04 09:16:49 +08:00
@villivateur ,因为本地有很多站点,比如 a.fbi.com b.fbi.com c.fbi.com
wbrobot
2022-07-04 09:34:05 +08:00
localhost 有前端权限白名单,这个没有
lvzw
2022-07-04 10:13:05 +08:00
Invalid Host header
kemistep
2022-07-04 10:30:07 +08:00
not996.com 不是更好
lscexpress
2022-07-04 10:30:37 +08:00
宁就是 IT 界的手工耿吧
zidon
2022-07-04 11:16:58 +08:00
@Zerek 晕菜,敲这么长不更麻烦,还有,万一 wall 抽风了呢
zidon
2022-07-04 11:24:26 +08:00
抱歉,fbi 的 DNS 原始记录就是 127.0.0.1 啊,收回刚才的话。
wuxqing
2022-07-04 11:45:30 +08:00
但是,如果要用 ssl ,还不是抓瞎。^o^
belin520
2022-07-04 12:19:08 +08:00
绝了绝了,手工耿都觉得很有用
rpish
2022-07-04 12:23:01 +08:00
😂对啊 我怎么没想到改 hosts 给 NAS 跑的 qb 和 portainer 一个域名
x86
2022-07-04 12:26:58 +08:00
改 host 都麻烦??
cjpjxjx
2022-07-04 12:30:14 +08:00
加一个
localtest.icu
44670
2022-07-04 12:30:16 +08:00
Rache1
2022-07-04 12:38:12 +08:00
Chromium 的可以安装这个扩展

datou
2022-07-04 12:56:48 +08:00
直接 localhost 不行吗?
markgor
2022-07-04 13:20:45 +08:00
@lalalaqwer #10
@villivateur #40
@wbrobot #43
@datou #56

有些程序路由匹配要用到,
比方:
admin.fbi.com
console.fbi.com
cdn.fbi.com
front.fbi.com
api.fbi.com
......
类似这种场合 localhost 就不適合了...
scyuns
2022-07-04 13:28:51 +08:00
好神奇,原来还有这么多有意思的域名
cnit
2022-07-04 17:18:57 +08:00
jiangzm
2022-07-04 17:37:44 +08:00
@holystrike 你这个算 5 级域名

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

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

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

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

© 2021 V2EX