This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(17)
*.vcap.me
VMWare 为其开放云平台。
*.vcap.me
VMWare maintains this for their open cloud platform.
37Signals 创建了一个完整的域,用于映射到您想要的任何 IP,http://xip.io。因此,对于 localhost,您可以使用 project.127.0.0.1.xip.io
我不得不开始将其用于某些代理工具,因为它们对未使用外部 DNS 调用解析为 IP 的请求感到窒息。
37Signals created a complete domain for mapping to any IP you want, http://xip.io. So for localhost you can using project.127.0.0.1.xip.io
I've had to starting using this for some proxy tools, as they were choking on request that didn't resolved to an IP using an external DNS call.
我刚刚找到了一个很好的解决方案:lvh.me
你可以尝试一下:
I've just found a great solution: lvh.me
you can try it:
我们有一个您可以真正记住的域名。
我们将尽我们所能维护它。
使用子域进行开发变得更加容易: *.lacolhost.com
We've got a domain you can actually remember for this.
We'll maintain it for as long as we're able.
Developing with subdomains just got a lot easier: *.lacolhost.com
http://localhost.tv 可以解决问题:-)
我购买了,因为现有的 85 个 localhost 域都没有指向 localhost ...
http://localhost.tv does the trick :-)
I bought since none of the existing 85 localhost domains were pointing at localhost...
注意:该域现已失效,因此无法按如下所述工作。
看起来 *.127-0-0-1.org.uk 会满足您的需要。
http://www.ecclestoad.co.uk/ 2006/08/dns-entry-pointing-to-localhost
示例:
Note: This domain has now lapsed so won't work as described below.
It looks like *.127-0-0-1.org.uk will do what you need.
http://www.ecclestoad.co.uk/2006/08/dns-entry-pointing-to-localhost
Examples:
http://*.localtest.me 似乎可以工作,除了 readme.localtest.me 。
http://*.localtest.me seems to work, except readme.localtest.me.
如果没有别的事,您可以为自己注册一个域并对其进行设置,以便它的行为方式。
If nothing else, you could just register a domain for yourself and set it up so that's how it behaves.
您可以访问 http://afraid.org 并注册一个.. 您可以获得免费域名(以及子域名,但是您可以完全控制 A 和 NS 以及此类记录)并将第一个点设置为 127.0.0.1。他们支持通配符
You can go to http://afraid.org and register one.. You can get free domains(well subdomains, but you have complete control over A and NS and such records) and point one at 127.0.0.1. They support wild-cards
请随意使用 *.localhst.co.uk(注意缺少第二个“o”)。只要我还活着,我就会让它活下去,而且互联网仍然是一个东西。对于想要测试两个级别 TLD 的人来说非常方便。
Feel free to use *.localhst.co.uk (note missing second 'o'). I'll keep it alive as long as I am, and the internet is still a thing. Handy for people who want to test with two levels of TLD.
如果您使用的是 Windows DNS,您可以创建一个新区域,然后使用 DnsCmd 为 @ 和 * 添加 A 记录。
If you are using Windows DNS, you can create a new zone, then you DnsCmd to add A records for @ and *.
为什么不在 URL 中使用文字 IP 地址?
http://127.0.0.1/
(旧 IPv4)http://[::1]/
(新 IPv6)Why not using the literal IP address in the URL?
http://127.0.0.1/
(old IPv4)http://[::1]/
(new IPv6)为 127.0.0.1:www.mouse-potato.com
该域名解析
This domain resolves to 127.0.0.1:
www.mouse-potato.com
somesite.com 是我知道的第一个网站,但是我在这里发现了一大堆
http:// www.websiteoutlook.com/www.somesite.com
检查其他 20 个站点是否指向 127.0.0.1。我不知道这些网站将继续指向 127.0.0.1 多久。
somesite.com is the first one I knew about, however I found a whole bunch here
http://www.websiteoutlook.com/www.somesite.com
Check the 20 other sites point to 127.0.0.1. I have no idea how long these sites will stay pointing to 127.0.0.1.
我已经设置了我自己的,您可以使用:
home.pdobson.com resloves to 127.0.0.1
I have set up my own that you can use:
home.pdobson.com resloves to 127.0.0.1
C:\WINDOWS\system32\drivers\etc 中的主机文件应该能够做到这一点,只需添加一行,如下所示:
此外,使用像 apache 这样的服务器或像 wamp 这样的程序,然后转到 < a href="http://localhost" rel="nofollow noreferrer">http://localhost
Your hosts file in C:\WINDOWS\system32\drivers\etc ought to be able to do this, just add one single line like this:
Additionally, use a server like apache or a program with it like wamp, and just go to http://localhost