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:

Configuring TUN/TAP virtual network interface for use with QEMU on Xubuntu 24.04

Configuring TUN/TAP virtual network interface for use with QEMU on Xubuntu 24.04 I am planning to run qemu-system-ppc to play around QEMU ...