AminM
AminM

Reputation: 1824

change localhost to another domain name

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

Answers (3)

君之蘭
君之蘭

Reputation: 138

IIS -> Create Site

Binding -> jeson.com

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

Upvotes: 3

GkDreamz
GkDreamz

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

Joshua Kissoon
Joshua Kissoon

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

Related Questions