Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

How to redirect phpmyadmin and roundube to...

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
pandabb
Posts: 192
Joined: Sat Aug 08, 2015 3:03 am

How to redirect phpmyadmin and roundube to...
  • Quote

Post by pandabb » Tue Feb 09, 2016 9:15 am

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!
Top

pandabb
Posts: 192
Joined: Sat Aug 08, 2015 3:03 am

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

Post by pandabb » Tue Feb 09, 2016 9:34 am

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
Top


Post Reply
  • Print view

2 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password