A. NET Web site created with IIS cannot access the solution via IP address _win server

Source: Internet
Author: User
With IIS to build a. NET Web site, in IIS bound to the server public IP 80 port and 127.0.0.1 80 ports, the result is not directly access to IP address, and in the LAN, can be directly accessed.

Because the site has not yet registered, so to use the IP address to test the site.

Use Pache to build Web sites, modify httpd.conf files, bind ip:80 can be extranet IP access

In the end, I found that IIS also has something called the head of the host, mainly for setting up a virtual host. For multiple sites under the same IP.

Now by modifying

Hosts file to visit the site, problem solving.

Add a line to the Hosts file

123.43.25.67 www.host.com

#ip hostname

And then you can access the Web site through the URL.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.