Phpmyadmin domain

I have domains:
panel.example.com (HestiaCP is installed here)
example.com
test1.example.com
Why does PhpMyAdmin open on all domains if I write /phpmyadmin after the domain?
How can I make phpmyadmin open only on the panel.example.com domain?

It was how it was designed original in the Vesta age…

For Nginx + Apache2 it was even worse where it was include via *.conf in apache2.conf…

For nginx only setups

rename
/etc/nginx/conf.d/phpmyadmin.inc

to

/etc/nginx/conf.d/phpmyadmin2.inc

And create a new template for the panel domain see:

And use:
include /etc/nginx/conf.d/phppgadmin2.inc*;

1 Like