Change localhost to another domain name

I want to change the localhost name in visual studio to my name like jeson.com

I searched and found some topic 1 2 I change the hosts file to

127.0.0.1 jeson.com
   :: 1 jeson.com

However this method does not work for me

+3
source share
3 answers

IIS -> Create Site

Binding -> jeson.com

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

+3
source

Just add this to the bottom of your hosts file:

  127.0.0.1     jeson.com

Leave:

::1 jeson.com

if it does not work, try restarting httpd

+1
source

. .
File Path-> C:\WINDOWS\system32\drivers\etc
  hosts
127.0.0.1 localhost loopback
::1 localhost
127.0.0.1 localhost
127.0.0.1 facebooktest.com
.

+1

All Articles