phpmyadmin redirects from domain.com -> hostname(what doesnt registred)

AlexGo

New member
Joined
Oct 18, 2019
Messages
1
Good day!
I have a question about phpmyadmin.
On a server there is a hostname domain (server.hostname.com) which doesnt registred.
When user tries to login to phpmyadmin, they redirects to non existent domain (server.hostname.com), and get error "cant connect".
How i can setup phpmyadmin, to point at phpmyadmin with user domain(reseller domain) (user domain for example example1.com, so when he tries to example1.com/phpmyadmin it will open, right now its redirect to server.hostname.com/phpmyadmin which doesnt exist)
Tried to google solution, but nothing found.
Using custombuild 2.x.
 
In /usr/local/directadmin/custombuild/options.conf you have the option use_hostname_for_alias with setting "yes". That means that whenever you want to open customer <domain>/phpmyadmin it will redirect to your server <hostname>/phpmyadmin (same with e-mail, etc - all webapps that are not part of the customer websites).

About the hostname itself - you must change it to your real server hostname. Login to DirectAdmin and go to Admin Level -> Admin Settings -> Server's Hostname
 
Back
Top