Wildcard Subdomains

后端 未结 8 896
广开言路
广开言路 2020-12-07 15:25

I know there have been a few threads on this before, but I have tried absolutely everything suggested (that I could find) and nothing has worked for me thus far...

W

8条回答
  •  南方客
    南方客 (楼主)
    2020-12-07 15:39

    I realize that I'm pretty late responding to this question, but I had the same problem in regards to a local development solution. In another SO thread I found better solutions and thought I would share them for anyone with the same question in the future:

    VMware owned wild card domain that resolves any subdomain to 127.0.0.1:

    vcap.me resolves to 127.0.0.1
    www.vcap.me resolves to 127.0.0.1
    

    or for more versatility 37 Signals owns a domain to map any subdomain to any given IP using a specific format:

    127.0.0.1.xip.io resolves to 127.0.0.1
    www.127.0.0.1.xip.io resolves to 127.0.0.1
    db.192.168.0.1.xip.io resolves to 192.168.0.1
    

    see xip.io for more info

提交回复
热议问题