Subdomain on localhost

后端 未结 5 950
萌比男神i
萌比男神i 2020-12-29 16:31

I would like to create a registration form which creates subdomains (yet on localhost), but I have got some problem. I know how to create subdomains, writing for example the

5条回答
  •  轮回少年
    2020-12-29 17:17

    http://*.lvh.me/ is an alias to localhost. Perfect for testing subdomains.

    $ host lvh.me
    lvh.me has address 127.0.0.1
    $ host foo.lvh.me
    foo.lvh.me has address 127.0.0.1
    

    Edit: 2016/07: lvho.st went away, swapped for working domain

提交回复
热议问题