Monday, May 21, 2012

Apache Port Changing on Ubuntu

To change the default port on which Apache listens to on Ubuntu and to access the webpages over the same rename all port 80  to 999 as I have shown.

root@Bodhidarmar:/etc/apache2# grep 999 ports.conf
NameVirtualHost *:999
Listen 192.168.56.101:999
root@Bodhidarmar:/etc/apache2# grep 999 sites-available/default
less-than VirtualHost *:999 grt-than
root@Bodhidarmar:/etc/apache2#

Now access http://IP-address:999

No comments:

Post a Comment