1. Add your ideal host name in your local machine
GO to C:\Windows\System32\drivers\etc
Modify your "hosts" file as administrator
Add your mapping line with your virtual host and your machine IP
ex : 10.20.12.102 local.test.jiangong.com2. Create a new website in IIS7

3. Modify your project property in Visual studio
Click "Web" tab, then "Use Custom Web Server", and type your hostname in "Server Url"
Now, you can browse your web site in your IIS7
本文介绍如何在本地机器上配置虚拟主机以供网站开发使用。主要包括修改 hosts 文件、在 IIS7 中创建新站点以及在 Visual Studio 中设置项目属性。
3万+

被折叠的 条评论
为什么被折叠?



