Configure Apache to Listen Multiple Ports

We can configure apache – httpd service to listen Multiple ports via Listen directive. By default httpd listens on TCP port 80. To configure multiple ports, open file /etc/httpd/conf/httpd.conf and modify the Listen directive tells the server to accept incoming requests on the specified port
# nano /etc/httpd/conf/httpd.conf
Find,
Listen 80
Force apache to listen to port 8080:
Listen 8080
Save and close the file. Restart httpd:
# /etc/init.d/httpd restart
Note: You must have root privileges to change configuration file.

1 comment: