Reputation: 1824
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
Upvotes: 4
Views: 20899
Reputation: 138
IIS -> Create Site
Binding -> jeson.com
Project -> properties -> Web -> Use Local IIS server -> ProjectUrl: http://jeson.com
Upvotes: 3
Reputation: 51
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
Upvotes: 1
Reputation: 3309
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
Upvotes: 2