Page 1 of 1

non standard port config

Posted: Thu Nov 06, 2008 6:19 am
by aalhard
I have several boxes I port-forward to, I now have a zm box in that group.

I want to know how to get the zm box to respond to a non-standard port so I can assign it to the box. (ie http://ipaddrs:25555)

SOLVED: Changed ip port!

Posted: Thu Nov 06, 2008 3:09 pm
by aalhard
I had to poke around a bit

I should have mentioned I am using ZMLinuxOS (Nice set up btw)
The apache conf files are in non standard locations and once I found them all was clear.

In /etc/httpd/conf/httpd.conf simply set ServerName to the ip:port I want to use.

ie:
ServerName 192.168.111.128:7533

means I would enter the URL:
http://192.168.111.128:7533/zm
to access my zm server from another system on my lan and would use port 7533 to forward traffic across my router to it

PS
I also set the Listen directive in httpd.conf to 0.0.0.0:7533
this tells it to listen to any ip on port 7533 , so I can still use localhost or 127.0.0.1 from the server itself


I hope this helps keep anyone from getting lost like I did :D

Posted: Thu Nov 06, 2008 3:47 pm
by TrOjAn
you can change the /etc/apache2/ports.conf from 80 to whatever you want ;)

TrOjAn

Posted: Thu Nov 06, 2008 5:11 pm
by aalhard
only if you have apache2 installed

ZMLinuxOS does not use apache2

it uses apache and the file is where I said it was

in fact the file "ports.conf" does not exist on my install