How to Run ISPconfig on both ports 80 & 443 on reserved IP?

Discussion in 'Installation/Configuration' started by radim_h, Mar 13, 2007.

  1. radim_h

    radim_h Member

    Hello,
    can somebody give me an advice please?

    i have more IP adresses and i'd like to have one of them reserverd just for ISPConfig and Run it on port 80 together with 443 and let the customers choose if they wants to encrypt theirs connection.

    How should my /root/ispconfig/httpd/conf/httpd.conf look ?


    Or is there possibility to run two login pages thru ISPconfig apache
    which one of them (on port80) will have just added link "encrypt you communication" which will redirect to second one on port 443 ?
     
  2. djtremors

    djtremors ISPConfig Developer ISPConfig Developer

    The problem is that ispconfig has it's own httpd service and runs as 'adminispconfig' user, not www/apache/nobody that most apache configs run as.

    The other problem is that both the real apache and ispc apache want to bind to port 80 and they can't if the other gets it first.

    You then have the option of either proxy forward depending on the ServerName and pass it to the real service (so real apache proxyforwards to ispconfig setup) or just use the port 443 port and begone with the port 80 idea.

    The example below is a port 81 non secure with a proxy from the real apache server mapping an external name of (ispconfig.yourhostingdomain.com:80) to ispconfig (remember, 81 isn't SSL as it won't work).

    PHP:
    <VirtualHost *:80>
    ProxyRequests Off

    # Port 81 is NON SSL of ispconfig
    ProxyPass http://localhost:81/
    ProxyPassReverse http://localhost:81/

    ProxyPreserveHost On
    ServerName ispconfig
    .yourhostingdomain.com
    ServerAdmin webmaster
    @yourhostingdomain.com
    CustomLog 
    /var/log/httpd/ispc-access.log combined
    </VirtualHost>
    Otherwise, 443 is just port 81 changed in the ispconfig httpd.conf
     
  3. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    The apache webserver allows it to bind it to a special IP. If you bind the ISPConfig webserver to one IP and your apache webserver to all other IP addresses, this should work. I dont remember the exact apache config syntax, please have a look at the apache manual for details.
     
  4. djtremors

    djtremors ISPConfig Developer ISPConfig Developer

    I think it's something like

    Listen 1.2.3.4:80
    Listen 2.3.4.5:80
    Listen 3.4.5.6:80
    Listen 4.5.6.7:80

    then

    <VirtualHost 1.2.3.4:80>
    </VirtualHost>


    <VirtualHost 2.3.4.5:80>
    </VirtualHost>

    etc.
     
  5. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

  6. radim_h

    radim_h Member

    thank you

    i'm going to try this...
     

Share This Page