Saturday, November 24, 2012

Changing default port used by Apache

Not sure if this is the right way to do it, searching the blogoshpere seems to indicate that this might be the case.

Steps to change default port that Apache listens on:
  1. As good practice make a copy of the file ports.conf to somewhere safe. Like
    • mkdir ~/bak
    • cp /etc/apache2/ports.conf ~/bak
  2. Open and edit ports.conf, like sudo vim /etc/apache2/ports.conf.
  3. In Ubuntu 12.10, change Listen 80 to Listen 81. This should be around line 9, of course change 81 to a value that you need.
  4. Restart Apache to enforce the changes, like sudo /etc/init.d/apache2 restart.

References:
http://httpd.apache.org/docs/2.2/vhosts/name-based.html
http://ubuntublog.org/how-to-change-apache-ports-in-ubuntu.htm

No comments:

Fedora install screen chronicle

Fedora install screen chronicle Below are links to Fedora installation screens. It is interesting to see how it has evolved over time. Fe...