Changing default port 80
Posted: Mon Oct 05, 2015 7:24 am
by tputhusserry
I am a new user of the Netspectrum Ubuntu 14.04 desktop instance. I need to install Apache2 and make port 80 as the default one, however this port is already in use by Netspectrum. How do I change Netspectrum to use another port (say 81) ?
Re: Changing default port 80
Posted: Tue Oct 13, 2015 3:28 pm
by jsun
I'm sorry that the BB did not send out email alert on pending messages and caused the delay. Here is the answer which I already replied to you over email, but I'll post it here just for the record. Thanks again.
===========
Suppose you like to change the port to 8080, run the following command after you log into the machine
> sed -i -e "s#80 localhost:#8080 localhost:#" /opt/netspectrum/aws/ubuntu-desktop/bin/rc-local.sh
> sudo reboot
Of course you need to make sure port 8080 is open for access. By default only TCP ports 22, 80, 443, 5900~5920 are open for outside access.