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.
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.
The person above is right
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