Page 1 of 1

Phpmyadmin URL change..

Posted: Fri Dec 29, 2017 4:47 pm
by dickbutt
I recently changed my phpmyadmin url in phpmyadmin.inc and basically i can go to my domain.com/customphpmyadmin and it will work fine... but i also found out even though i changed this URL i can still go to domain.com/phpmyadmin ? Any idea how to stop that ?

The setup is Nginx/php-fpm/centos7/

Re: Phpmyadmin URL change..

Posted: Fri Dec 29, 2017 5:11 pm
by dickbutt
imperio wrote:How about the domains virtualhosts ?
This is in the nginx.conf " include /etc/nginx/conf.d/phpmyadmin.inc*; " also looked in snginx.conf and same.. This is actually a new server so there's only the one domain on it.

This is what is in my phpmyadmin.inc

"
location /scdb{
alias /usr/share/phpMyAdmin/;

location ~ /(libraries|setup) {
return 404;
}

location ~ ^/scdb/(.*\.php)$ {
alias /usr/share/phpMyAdmin/$1;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $request_filename;
}
location ~* ^/scdb/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
alias /usr/share/phpMyAdmin/$1;
}
}