Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-25-2010, 01:24 PM
|
#1
|
Member
Registered: May 2010
Posts: 87
Rep:
|
phpmyadmin and login via ssl
Hi,
I've a problem with phpmyadmin and login via https.
My server is a VPS with Centos 5.5; apache and phpmyadmin are installed with yum:
Quote:
phpmyadmin.noarch 2.11.11.1-1.el5.rf
httpd.x86_64 2.2.3-43.el5.centos.3
|
I can reach the page with this url:
https://sql.xxxxxyzyz.org
when I type login/password, the URL is automatically redirect to:
http://sql.xxxxxyzyz.org
so I must manually re-add the "s" in order to succesfully view phpmyadmin.
This happens with every browser (Opera, IE, Firefox).
Any suggestion?
Thankyou!
p.s. I also tried to set PmaAbsoluteUri parameter with the URL above, but the problem still occurs..
|
|
|
12-25-2010, 02:54 PM
|
#2
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,223
|
Hi,
There must be mod_rewrite the reason of this behavior.
Search for a .htaccess in /var/www/html/phpmyadmin, or wherever you installed phpmyadmin containing rewriting rules to turn https into http.
If there is not .htaccess, then look into httpd.conf, or phpmyadmin.conf
Regards
|
|
|
12-25-2010, 08:37 PM
|
#3
|
Senior Member
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125
|
One other thing to check: If I recall correctly, PhpMyAdmin installs the PHP files somewhere in the /usr tree and creates an alias directive for /phpmyadmin to point to this section of the tree. You may need or want to have this alias directive referenced in your vhost for the SSL site only.
Another, potentially more secure option, would be to make this site accessible only via localhost or your LAN and not accessible via the Internet. Then you can use SSH with a socks proxy to connect to your server and then bring PhpMyAdmin up in your web browser. This will help prevent dictionary attacks as myadmin is a commonly attempted service to find given how much damage you can do with it.
|
|
|
12-27-2010, 01:47 PM
|
#4
|
Member
Registered: May 2010
Posts: 87
Original Poster
Rep:
|
Quote:
Originally Posted by bathory
Hi,
There must be mod_rewrite the reason of this behavior.
Search for a .htaccess in /var/www/html/phpmyadmin, or wherever you installed phpmyadmin containing rewriting rules to turn https into http.
If there is not .htaccess, then look into httpd.conf, or phpmyadmin.conf
Regards
|
Hi,
I've disabled the DSO mod_rewrite: same behavior.
|
|
|
12-27-2010, 01:49 PM
|
#5
|
Member
Registered: May 2010
Posts: 87
Original Poster
Rep:
|
Quote:
Originally Posted by Noway2
One other thing to check: If I recall correctly, PhpMyAdmin installs the PHP files somewhere in the /usr tree and creates an alias directive for /phpmyadmin to point to this section of the tree. You may need or want to have this alias directive referenced in your vhost for the SSL site only.
|
Hi,
I'm not using any Alias, I've a dedicated virtual host that points in the actual DocumentRoot (/usr/share/phpmyadmin).
|
|
|
12-27-2010, 04:53 PM
|
#6
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,223
|
Hi,
Without posting the rewrite rules and the apache configuration there is not much we can do.
You can try to use a .htaccess with:
Code:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
And make sure you have
in <Directory /usr/share/phpmyadmin>...</Directory> definition, so .htaccess can be red by apache
Regards
|
|
|
All times are GMT -5. The time now is 05:01 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|