Steps to change the default port number for Apache HTTP Server

We all know that as default the Apache HTTP Server will ping to port number 80 . What we have to do when a situation of changing this post number comes? Lets see some simple steps for this…

1. Assume that your new port number is 78

2. cp /etc/httpd/ports.conf /etc/httpd/ports.conf_backupgedit /etc/httpd/ports.conf

3. Find this line- Listen 80

4. Replace with the following line – Listen 78

5. Save the edited file

6. /etc/init.d/httpd restartApache HTTP server, Linux


Technorati : ,

25 thoughts on “Steps to change the default port number for Apache HTTP Server

  1. Hi! I’ve been following your weblog for some time now and
    finally got the courage to go ahead and give you a shout out from Austin Texas!
    Just wanted to tell you keep up the excellent work!

  2. One’s mind has a technique of making itself up in the background, also it suddenly becomes clear what one ways to do.
    Try, try, try, and make on trying may be the rule that must definitely be followed to get an authority in anything.

Leave a comment