Ispmanager 6 lite, pro, host documentation

How do I change the IP address used by ihttpd?

 

If ihttpd does not work on the server after changing the IP address:

  1. Replace the IP address in the listen section of the configuration file /usr/local/mgr5/etc/ihttpd.conf. The section you need may look like

    An example of listen section

    listen {
            ip 192.0.2.22
            redirect
    }
    or

    An example of listen section

    listen {
            ip 192.0.2.22
            redirect
            sni {
                    domain_cert etc/ihttpd_lets1.crt
                    domain_key etc/ihttpd_lets1.key
                    domains billmana.gq
            }
    }
    Note
    If you specify an IP address in the listen section that is not present on the network interface, the ihttpd service will not start after restart.
  2.  Restart ihttpd:
    systemctl restart ihttpd
    or
    service ihttpd restart