Home > Apache, CentOS, configure, Fedora, How To, Linux OS > How to change the default port number for Apache HTTP Server

How 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_backup

3. vi /etc/httpd/ports.conf

4. Find this line – Listen 80

5. Replace with the following line – Listen 78

6. Save the edited file

7. /etc/init.d/httpd restart  Apache HTTP server, Linux

  1. May 2, 2011 at 1:37 AM

    Hi thanks a lot for a perceptive post, I actually found your blog by mistake while looking on Goole for something else closely related, anyhow before i ramble on too much i would just like to state how much I enjoyed your post, I have bookmarked your site and also taken your RSS feed, Once Again thanks for the blog post keep up the good work.

  2. November 23, 2012 at 10:19 AM

    Thanks for share buddy

  1. No trackbacks yet.

Leave a comment