nano /etc/nginx/conf.d/ip.conf
# Replace the following
location /phpmyadmin/ {
alias /var/www/document_errors/;
return 404;
}
location /phppgadmin/ {
alias /var/www/document_errors/;
return 404;
}
# With the following
include /etc/nginx/conf.d/phpmyadmin.inc*;
include /etc/nginx/conf.d/phppgadmin.inc*;
Did you edit literally this file /etc/nginx/conf.d/ip.conf or you edited the right conf file that has your public ip in the file name? Something like /etc/nginx/conf.d/203.0.113.1.conf
If you edited the right conf file, did you restart nginx?