I
I
ifursov2014-10-29 00:25:29
PHP
ifursov, 2014-10-29 00:25:29

VestaCP\nginx: how to block access to /phpmyadmin across all domains?

Hello everyone, I'm trying digitalocean for the first time, installed vestacp, now I'm worried about the availability of PMA across all domains, for example: example.com/phpmyadmin , /webmail I would like to limit this somehow, for example, something would be available only via droplet ip/phpmyadmin , how to do it? Thank you in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Valentin, 2014-10-29
@nowfine

location ~ /phpmyadmin/ {
deny all;
}

A
Alexey, 2019-04-14
@alexey66

location  /phpmyadmin/ {
deny all;
}

it works for me ... you add nginx.conf settings to the server above the main location

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question