2. Open the file hosts, press enter at the bottom and add:127.0.0.1www.test.com, open iis and find the website you deployed. You can use cmd and enter the command "inetmgr".
3. Open iis quickly. After finding the website, right-click the website to find "Edit Binding".
4. A new operation box will pop up. Locate the Add button on the right side of the list, and then click it.
5. In the pop-up "Add Website Binding" setting interface, enter www.test.com in the input box below the host name, and I will use 80 as the port by default, and then click OK to finish.