Page 1 of 1

How to redirect phpmyadmin and roundube to...

Posted: Tue Feb 09, 2016 9:15 am
by pandabb
Hello i installed SSL but decided to activate it only on my hostname host.domain.tld

What i want to do is like this, is there a way to change.

Alias /phpMyAdmin /usr/share/phpMyAdmin
to
Alias /phpmyadmin https://host.domain.tld

The purpose of this is so that everydomain i add without SSL when they access newdomain.com/webmail or newdomain.com/phpmyadmin it will redirect to https://host.domain.tld/webmail or phpmyadmin

DOEs it make any sense or adds up for security?

Thanks!

Re: How to redirect phpmyadmin and roundube to...

Posted: Tue Feb 09, 2016 9:34 am
by pandabb
Fixed:

I changed the codes to:

Redirect /phpmyadmin https://host.maindomain.com/phpMyAdmin
Alias /phpMyAdmin /usr/share/phpMyAdmin

Is my code above ok?

Now it works like Cpanel, forced SSL on both roundcube and phpmyadmin.. best of all free sll from letsecnrypt haha