Changing port for Apache monitoring

Changing the port for Apache monitoring

  1. Edit the ports configuration file:
    For Ubuntu/Debian: Edit /etc/apache2/ports.conf
    For Centos/Redhat: Edit /etc/httpd/conf/httpd.conf
  2. Check for the line Listen 80. Change port from 80 to the desired port.
  3. To make the server accept connections on the port for only specific interfaces, change Listen 90 to Listen domain.com:90
  4. Save the file and restart the server.