(IIS) solution for local website placement, virtual domain names, permission settings, and inability to display pictures of websites accessed by LAN

Source: Internet
Author: User
Tags php website

A PHP website project is released locally using IIS. The Internet Guest user permissions of the website root directory "XXXX" and the IIS process account startup are all set to full control (not recommended or secure) [For more permission settings, see view IIS Publishing Web permission settings]. However, Images cannot be displayed. After efforts are made, the following solutions are provided for communication only:

1. Add "127.0.0.1 www.phptest.com" to the local c: \ ----> Windows ------> system32 ------> driver -----> etc -------> hosts file ".

2. Add "192.168.1.111" to the "C: \ ----> Windows ------> system32 ------> driver -----> etc -------> hosts" file on each PC in the LAN.

Www.phptest.com ", 192.168.1.111 is the IP address of the web host in the LAN.

3. Ping www.phptest.com locally. If the feedback is 127.0.0.1, the local configuration is correct.

4. Ping www.phptest.com from other sub-PCs in the LAN. If the feedback is 192.168.1.111, the configuration is correct.

5. If the image still cannot be displayed when the sub-PC accesses www.phptest.com, clear the browser cache and run ipconfig/flushdns to clear the DNS cache.

6. The above configuration still does not take effect. Please carefully check the website folder permission settings and hosts file to see if the configuration is correct.

7. At last, it usually takes a time interval to clear the browser. The DNS cache will be accessed after two or three minutes. It should be okay.

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.