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