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.