A
A
Alexander Tsymbal2018-09-03 10:44:56
PHP
Alexander Tsymbal, 2018-09-03 10:44:56

How to close access to /phpmyadmin?

I'm trying to close access to phpMyAdmin via сайт.ру/phpmyadmin. CentOS 7.
Used instructions to change Alias ​​in /etc/httpd/conf.d/phpmyadmin.conf:
from Alias /phpmyadmin /usr/share/phpMyAdmin
to Alias /чтотосвоё /usr/share/phpMyAdmin
Also changed the link in ISPManager /usr/local/mgr5/etc/ispmgr.conf
extaction phpmyadmin https://сайт.ру/чтотосвоё
Rebooted the server several times.

But now my phpMyAdmin opens both at the new address /чтотосвоёand at the old one /phpmyadmin.
Maybe somewhere else you need to remove the link to the old alias?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
#
#, 2018-09-03
@AlexanderTsymbal

move the folder physically. in a real way "something of my own"
ps sometimes, clumsy solutions are more reliable;))

R
rubtsoff, 2018-09-03
@rubsoff

do a redirect

REWRITECOND %{REQUEST_URI} !^ http://www.site.ru/phpMyAdmin
REWRITERULE / https://site.ru

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question