change localhost to another domain name

匿名 (未验证) 提交于 2019-12-03 00:57:01

问题:

I want to change localhost name in visual studio to my own name for example jeson.com

I search and find some topic 1 2 I change my hosts file to

127.0.0.1 jeson.com
::1 jeson.com

However, this method does not work for me

回答1:

IIS -> Create Site

Binding -> jeson.com

Project -> properties -> Web -> Use Local IIS server -> ProjectUrl: http://jeson.com



回答2:

Just add this to the bottom of your hosts file:

  127.0.0.1     jeson.com 

Leave out the:

::1 jeson.com 

if it does not work, try restarting httpd



回答3:

change your localhost name to domain name.Go to this path.
File Path-> C:\WINDOWS\system32\drivers\etc
This is an example of the hosts file
127.0.0.1 localhost loopback
::1 localhost
127.0.0.1 localhost
127.0.0.1 facebooktest.com
restart your server.. Read this



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!