WHM can change the addresses and ports on which Apache accepts HTTP and HTTPS requests. This is an administrator task for a specific server configuration, such as a planned reverse proxy arrangement.

Plan the change

Record the existing listener settings. Check that the proposed ports are unused and that the firewall and any reverse proxy will route traffic correctly.

If a cPanel-managed NGINX installation already controls proxy and Apache ports, follow that integration’s supported configuration instead of changing listeners independently.

Change the listeners

  1. Log in to WHM as an administrator.
  2. Open Server Configuration > Tweak Settings.
  3. Select System.
  4. Locate Apache non-SSL IP/port.
  5. Enter the planned address and HTTP port in IP:port form.
  6. Locate Apache SSL port and enter its planned address and HTTPS port.
  7. Review both settings and click Save.
  8. Check the resulting configuration and service status.

The usual all-address defaults are 0.0.0.0:80 and 0.0.0.0:443. A specific address limits listening to that address.

Test the complete route

Test HTTP redirects, HTTPS, representative hosted domains and proxy connections from outside the server. If routing fails, restore the recorded settings and review the design before trying again.