http://lvh.me:3000/ 原理是什么?


要测试子域名. 比如, http://user.domain.com
但是在本地开发,只能用 http://localhost, 比如像这样的二级域名 http://test.localhost :3000,
所以就找到了 http://lvm.me ,访问这个网站就会转向本地 http://localhost
这样就可以了 http://test.lvm.me :3000

但是谁能说下lvm.me是怎么实现这个的。

用这个还得翻墙,想自己做个。

另外ubuntu下,可不可以实现 http://localhost 的子域名访问?

localhost subdomain

天体战士桑雷德 12 years, 3 months ago

泛域名解析
BIND配置文件

*.lvh.me IN A 127.0.0.1

P.S. 楼主也可以试试 127.0.0.1.xip.io

昵称什么的…… answered 12 years, 3 months ago

Your Answer