Steps to change default port that Apache listens on:
- As good practice make a copy of the file ports.conf to somewhere safe. Like
- mkdir ~/bak
- cp /etc/apache2/ports.conf ~/bak
- Open and edit ports.conf, like sudo vim /etc/apache2/ports.conf.
- 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.
- 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:
Post a Comment