phpMyAdmin (redirect, https)

http-ről https-re automatikusan átváltó phpMyAdmin elérést szeretnék.

default (részlet):
<VirtualHost *:80>
ServerName majsql.domainem.hu
DocumentRoot /var/www/majsql/
Redirect "/" "https://majsql.domainem.hu/"
ServerAdmin kezelo@localhost
ErrorLog /var/log/apache2/majsql.domainem.hu.error.log
TransferLog /var/log/apache2/majsql.domainem.hu.access.log
</VirtualHost>

default-ssl (részlet):
<VirtualHost *:443>
ServerName majsql.domainem.hu
DocumentRoot /var/www/majsql/
ServerAdmin kezelo@localhost
ErrorLog /var/log/apache2/majsql.domainem.hu.error.log
TransferLog /var/log/apache2/majsql.domainem.hu.access.log
LogLevel debug
</VirtualHost>

Ha tesztelem (/var/www/majsql/teszt.html) minden rendben, ha a phpMyAdmin-t indítanám (index.php):
The page isn't redirecting properly
Iceweasel has detected that the server is redirecting the request for this address in a way that will never complete.

(Cookie engedélyezve)

Hozzászólások

nekem magától átvált, de nem az apache-al oldottam meg, hanem magával a phpmyadminnal...

"$cfg['ForceSSL'] = true;"

--
by Mikul@s

Nálam is $cfg['ForceSSL'] = true;
Ha szerver oldalon nincs https, úgy a php-nak nagyon nehéz lehet:-)

Egyébként böngészőből telepítettem: https://majsql.domainem.hu/setup
Rendben lement, config.inc.php a megfelelő helyre és belépnék aztán el sem jut a myAdmin-ig:
"The page isn't redirecting properly"

Ha html oldalak működnek, talán a php.ini-vel lehet gond...

.htaccess a phpmyadmin mappájába, a következő tartalommal:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

--
http://modellers.hu

"RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}"

Próbálkoztam én is hasonlóval és sajnos ez sem oldotta meg a problémát.

Bármilyen html oldalt betölt (pl. majsq.domainem.hu/Documentation.html) php-t viszont nem, akkor a php-val lehet vmi...