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 Database Server
  • Search

phpmyadmin link opens http URL instead of HTTPS

Questions regarding the Database Server
MySQL, PostgreSQL, MariaDB, Percona Server, phpMyAdmin, phpPgAdmin
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
petron
Posts: 10
Joined: Wed Oct 01, 2014 9:13 pm

phpmyadmin link opens http URL instead of HTTPS
  • Quote

Post by petron » Tue May 31, 2016 7:08 am

Hi,

If I open in DB > PHPMYADMIN link it will open phpmyadmin in HTTP mode but not HTTPS. Is it possible to fix this? Yes, I can use redirector or any other browser extension to redirect these links to the HTTPS version, but it would be easier to open it with one single click without any add-on or trick.

Thanks
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: phpmyadmin link opens http URL instead of HTTPS
  • Quote

Post by skurudo » Wed Jun 15, 2016 1:55 pm

If you use ssl domain for access, there no such thing.
https://domain.com:8083 -> https://domain.com/phpmyadmin

In case with IP, you can enable https in phpmyadmin - http://docs.phpmyadmin.net/en/latest/config.html

Code: Select all

$cfg['Servers'][$i]['ssl']
Type: boolean
Default value: false

Whether to enable SSL for the connection between phpMyAdmin and the MySQL server to secure the connection.
Top

SdeSergi
Posts: 11
Joined: Fri May 15, 2020 9:39 am

Os: Ubuntu 17x
Web: apache + nginx
Re: phpmyadmin link opens http URL instead of HTTPS
  • Quote

Post by SdeSergi » Fri May 29, 2020 10:15 am

skurudo wrote: ↑
Wed Jun 15, 2016 1:55 pm
If you use ssl domain for access, there no such thing.
https://domain.com:8083 -> https://domain.com/phpmyadmin

In case with IP, you can enable https in phpmyadmin - http://docs.phpmyadmin.net/en/latest/config.html

Code: Select all

$cfg['Servers'][$i]['ssl']
Type: boolean
Default value: false

Whether to enable SSL for the connection between phpMyAdmin and the MySQL server to secure the connection.
Well, I don't think that's quite right.

In my case... (ubuntu 18.04.4) it's true that enabling the SSL of the domain is enough to do it also in phpmyadmin, but it doesn't redirect the http entries to https. No indication of this and other forums worked for me. The only way I could fix this was by adding the redirect lines inside /etc/phpmyadmin/apache.conf (inside the Directory tag).

Code: Select all

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
I'm a novice in manual server configuration. Is this a good practice? I just know that it works...
Top


Post Reply
  • Print view

3 posts • Page 1 of 1

Return to “Database 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
 

 

cron

Login  •  Register

I forgot my password