What is the reason why it can be opened using IP but cannot be opened using local domain name?
PHP中文网2017-11-03 09:05:00
1 possibility:
1. The IP can be accessed in the local environment. The domain name is not convenient. Check whether the domain name of the local host file is bound.
2. In the online server environment, if the IP can access the domain name but cannot, it may be that the domain name has not been registered, or it may be that the server provider has whitelist restrictions. Just contact the server provider to inquire.
天蓬老师2017-11-02 22:01:51
You need to modify the local hosts file to bind the local domain name you created with the local host IP.
After the binding is completed, you need to restart the web server