How to access the project through the local domain name

 

table of Contents

Himself with a local domain name

SwitchHosts


 

Himself with a local domain name

 

Recent study looked at the video, learned a good way to define their own local domain name, you can also access your domain name in the project by spending money without it

 

 

SwitchHosts

 

First you need to download this tool at the following address

Link: https: //pan.baidu.com/s/1XipkFoDYvJWTXeLqE3zYLQ 
extraction code: zcmu

 

After downloading we unzip into the folder, locate the icon, double-click it

 

Click Add to the lower left corner, and then casually Hosts title, click OK

 

After writing, we click into this title, the write mappings. 127.0.0.1 represents your computer ip, manage ... on behalf of your custom domain name

 

Then we enter the System Hosts, found that change has been accepted

 

Next we enter specific front-end projects, the domain name detection in the project development environment to a close

You can write a command at this location

 

 

Next we need to restart the program after a successful restart to see through the next manage.leyou.com visit, remember to write the port number

 

Get - but we have to add the port number, if you want to have omitted the port number as of the nginx ~

 

 

 

Published 315 original articles · won praise 157 · Views 140,000 +

Guess you like

Origin blog.csdn.net/Delicious_Life/article/details/104187969