Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Developers' Forum

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10th August 2009, 15:38
moglia moglia is offline
Member
 
Join Date: Apr 2009
Posts: 92
Thanks: 7
Thanked 15 Times in 11 Posts
Lightbulb httpd and phpmyadmin recirect issue

I generated certificate at cacert.org and used it on 8080 port changes ispconfig.vhost to use certificate. (segure open ssl).

Im using debian and phpmyadmin package donīt have autoconfigurations to put phpmyadmin alias to https. Only for http.

Itīs make sense for use the same certificate if ispconfig operates with ssl put phpmyadmin alias on same virtual host used by ispconfig.

phpmyadmin and ispconfig can share the same host and certificate and all operate on secure connections. because both sending password over networks.

Im copy and paste /etc/apache2/conf.d/phpmyadmin.conf on
/etc/apache2/sites-available/ispconfig.vhost now works perfectlly.

i modified the file on /interface/web/sites/database_phpmyadmin.php to reflect this modifications and tested on debian not on another distros and uploaded to svn.

database_phpmyadmin.php
-----------------------------------
isset($_SERVER['HTTPS'])? $http = 'https' : $http = 'http';
($_SERVER["SERVER_PORT"] != '80' and $http == 'https')? $serverPort = ':'.$_SERVER["SERVER_PORT"] : $serverPort = '';
header('location:'.$http.'://'.$serverData['server_name'].$serverPort.'/phpmyadmin');
-------------------------------------
If using segure conections phpmyadmin alias not configured on 443 port (apache2) by default to recive url rediretion. The idea is put alias on same ispconfig host if you using ispconfig with ssl.

Another sugestion is if ispconfig is on https redirect to phpmyadmin on http.
I belive keep all on secure connection itīs better way.

Please give-me a feedback of this modifications, i considered itīs make more sense about phpmyadmin and work with ispconfig.

Itīs a simple modification at the end of file but i can not check impact of this modification on another distros.

Sugestions and comments will be apreciated.
Reply With Quote
Sponsored Links
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Httpd service not running grant-skywalker General 3 30th November 2006 16:04


All times are GMT +2. The time now is 15:06.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.