Meniu

Change default apache port number for HTTP Server

My friend just requested a post for me to change the apache port number for HTTP Server, and now I will give you all a tutorial about this stuff.


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 81

2. Go to terminal and type: 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 81

5. Save it

6. Go to terminal and type: /etc/init.d/httpd restartApache HTTP server, Linux

And that's all you need to do to change the port number, you also can use this method for other Linux distribution.

Mirela

Zona de mobile
  • | 34 articole

Nici un comentariu inca. Fii primul!
  • powered by Verysign