Friday, March 22, 2013

How Do I Configure Apache Server To Listen Multiple Ports ?


Hello,
By default Apache server listens on TCP port 80 but I’d like an Apache Web Server to listen on port 80 and port 8080.But we can also configure apache to listen on multiple ports.It is shown below.

edit file /etc/httpd.conf.httpd.conf
 and search the line Listen 80
Add one more line like it and change the port to one we want
Listen 8080
And find the VirtualHost portion for your website config and add *:8080 as shown below:

<Virtual Host *:80 *:8080 >
.................
<Virtual Host>

Thats all.................

No comments:

Post a Comment