About second IP again

Discussion in 'Installation/Configuration' started by dmw555, May 19, 2006.

  1. dmw555

    dmw555 New Member

    Hi !

    sorry for my english :)

    I install ispconfig and work over port 81 by https ok.

    Later i bind ispconfig to second IP port 80,
    but cannot connect to ispconfig.

    Maybe i must change port 80 to port 443 ?
    But i can't do it because main web server (apache 2.0) listen secure port 443
    on all interfaces.

    I have two questions:

    1) repeat pls exactly what can i do for switch ispconfig to second IP.

    2) small offtopic. I bind main web server (apache 2.0) to first IP non secure port listen on only first IP, but secure port (443) listen on all interfaces :(
    what can i do for it ?

    Thanks in advance.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    What did you do exactly? The ISPConfig http daemon is only for the admin interface, not for serving yozur webpages on port 80.
     
  3. dmw555

    dmw555 New Member

    Yes ... i know.

    Because i can't access to non standart port 81 over proxy,
    I want bind ispconfig admin console web server to second IP one of standart ports and main web server bind to first IP.

    If I work with ispconfig by https protocol
    then bind to port 443 only or port 80 ok?

    repeat pls exactly what can i do for switch ispconfig admin console
    to second IP ?


    Thanks in advance.
     
  4. falko

    falko Super Moderator Howtoforge Staff

    Only if yor main Apache doesn't listen on port 443.

    Change the Listen directive in /root/ispconfig/httpd/conf/httpd.conf, e.g. like this:
    Code:
    Listen 1.2.3.4:80
    Also change the port number in /home/admispconfig/ispconfig/lib/config.inc.php and restart ISPConfig:
    Code:
    /etc/init.d/ispconfig_server restart
     
  5. dmw555

    dmw555 New Member

    I didt it.

    Now main web server bind to first ip and
    ispconfig web to second ip.

    But i can't get access to ispconfig admin console
    I try bind ispconfig to port 80 or to port 443 ... all the same ... can't get access.

    I think may be problem with SSL certifikate ?
    When i install ispconfig i generate certifikate for name which bind to first ip.
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Have you changed the port in the ISPConfig config.inc.php file too?
     
  7. dmw555

    dmw555 New Member

    Yes i have changed the port in the ISPConfig config.inc.php file too.

    example:
    first_ip.aaa.com --> first IP
    second_ip.aaa.com --> second IP

    eth0 "first IP"
    eth0:0 "second IP" (alias)

    Ispconfig work only on any tcp ports on first IP
     
  8. dmw555

    dmw555 New Member

    Probably i find problem.

    on second interface all daemons not working properly ...
    example: smtp don't answer, apache need authorization ??! , pop3 don't answer.
    But command "netstat -tap" say pop3, smtp and http
    listen all interfaces.
    This situation independently from firewall on or off.
     
  9. falko

    falko Super Moderator Howtoforge Staff

    Please post the output of
    Code:
    netstat -tap
    What's in /etc/hosts?
     
  10. dmw555

    dmw555 New Member

    now ISPconfig running on first_IP:443
    and main web server on port 80 only on all interfaces.

    netstat -tap
    -------------------------------------------
    firstIP_name:443 bla bla bla ispconfig_httpd
    *:80 bla bla bla httpd

    -------------------------------------------

    i try some test:

    #telnet first_ip 80
    get /index.html <-- after that some output

    #telnet second_ip 80
    get /index.html <-- after that nothing


    /etc/hosts contain only first IP and localhost
    example:

    #first IP
    XXX.XXX.XXX.XXX firstIP_name.aaa.com first_name
    127.0.0.1 localhost.localdomain localhost
     
  11. falko

    falko Super Moderator Howtoforge Staff

  12. dmw555

    dmw555 New Member

    Now, Yes.

    Because any httpd on second_IP not working properly ...
    I understand .. it's no problem of ISPconfig (on first_IP ISPconfig work OK)

    example:

    i create virtual host on second_IP
    try http://second_IP .... and get authorization window from apache.

    if i change second_IP to first_IP in this vistual host ... then all ok.
     
  13. falko

    falko Super Moderator Howtoforge Staff

    What do you mean with authorization window?

    Do you see the correct IP address in Vhosts_ispconfig.conf?
     

Share This Page