当前位置: 动力学知识库 > 问答 > 编程问答 >

dns - Access domain name via local IP

问题描述:

I've setup a local server but I cannot remember how to access specific domains through a single IP, example:

I have the domain setup in hosts as:

127.0.0.1 zf2-tutorial.localhost localhost

127.0.0.1 DomainA

127.0.0.1 DomainB

Now when I access my local server through my ip address of: 172.16.20.35 it comes up at the first domain zf2.

I'm trying to access DomainA through local IP, can anyone tell me how to do this with a browser?

I've tried 172.16.20.35:DomainA, 172.16.20.35.DomainA, 172.16.20.35/DomainA.

分享给朋友:
您可能感兴趣的文章:
随机阅读: