Change webserver port off of 80

General PhidgetSBC Discussion.
tomrt
Fresh meat
Posts: 1
Joined: Fri Dec 16, 2016 8:11 pm

Change webserver port off of 80

Post by tomrt »

Hi,

Is there a simple way to move the default website off of port 80? I'd like to use port 80 for the webservice that I'm running on the SBC.

Thanks!
Brett
User avatar
Patrick
Lead Developer
Posts: 672
Joined: Mon Jun 20, 2005 8:46 am
Location: Calgary

Re: Change webserver port off of 80

Post by Patrick »

Yes, modify the file /etc/init.d/busybox-httpd and modify the OPTIONS line, adding -p for port. For example, to use port 85:

OPTIONS="-c $DEFAULTS -f -p 85"

-Patrick