httpd and phpmyadmin recirect issue

Discussion in 'Developers' Forum' started by moglia, Aug 10, 2009.

  1. moglia

    moglia New Member

    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. :)
     
  2. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    This configuration will not work when ispconfig is running as php-fcgi. You can try this by disabling mod_php in apache. Also we have not used this configuration to separate ISPConfig from phpmyadmin so the system can not be compromised by a phpmyadmin bug.
     
  3. moglia

    moglia New Member

    Sugestion.

    Dedicated vhost with mod_php for phpmyadmin on another port with same address and certificate is one way.


    Take more liberty to admin choose a url location of phpmyadmin and configure vhost manually to do it.

    Options on config at panel to specify a url of phpmyadmin. it´s a great idea no?

    or

    Options on config.inc.php file to set a url of phpmyadmin it´s more elegant way to solve this issue.

    Whats you think about this?
     
  4. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    Thats already planned for 3.0.2. Same for webmail URL.
     
  5. moglia

    moglia New Member

    I can help to do it?

    Im using a ispconfig 3 on production enviroment.
    and i can build a test enviroment and make more code contribibs insted only translation to portuguese.

    I have some advanced php skills.

    And i can help with bugs fixing all bugs if i can do it.

    any adtional question i will use forum to talk with all developers.

    actually im a simple user on bugtrack can not take tasks to me. i can not assign then for myself.
     
  6. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    Thank you for helping with ispconfig development.

    I've adeed your bugtracker user to the developer group, so you can assign tasks to yourself.
     

Share This Page