The website can be accessed directly using the domain name, but I hope that the IP address can also be accessed directly and will not be redirected to the domain name. Is there any way to set it up? The web server is configured with nginx.
Currently, if you access using an IP address, you will be automatically redirected to the domain name.
For domain name access, first obtain the corresponding IP through DNS, and then access through IP, so domain name access is equivalent to IP access