Anti-empty header host binding is set in the configuration file:
server{
listen 80 default_server;
server_name _;
return 500;
}
In this case, the IP cannot access the website. Currently, I want to allow the IP to access the /phpmyadmin/ directory, but other directories are not allowed to access. How should I configure it?
Comment out this paragraph first, or use the domain name to access phpmyadmin.
Restrict IP access
See the answer link on the first floor