Changing default port 80
-
- Posts: 1
- Joined: Sun Oct 04, 2015 6:15 pm
Changing default port 80
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
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.
===========
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 10 guests