Changing default port 80

Forum for general user discussions related to Netspectrum Ubuntu Desktop AMI. https://aws.amazon.com/marketplace/sear ... tu+desktop
tputhusserry
Posts: 1
Joined: Sun Oct 04, 2015 6:15 pm

Changing default port 80

Postby tputhusserry » Mon Oct 05, 2015 7:24 am

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) ?

jsun
Site Admin
Posts: 77
Joined: Tue May 26, 2015 9:52 pm

Re: Changing default port 80

Postby jsun » Tue Oct 13, 2015 3:28 pm

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.


Return to “Ubuntu Desktop AMI users”

Who is online

Users browsing this forum: No registered users and 1 guest