Koozali.org: home of the SME Server

Ibay not on port 80

Anthony

Ibay not on port 80
« on: January 10, 2004, 10:12:18 AM »
Has anyone written a howto on how to get an ibay to listen on a port other than 80 and 443?

I am on OptusNet cable and they filter ports 80 and 443.
I want to put Picture Gallery on the net so my relatives can see my pics,
but I need to get the ibay to listen on a non-standard port.

I actually got this pretty much to work by modifying /etc/httpd/httpd.conf
to create a new virtual host on port 22000 ( I just picked that port)
but I had to do some major mods and I am not certain how to create a custom
template to lock my changes in.

Anyone done this before?

Henk

Re: Ibay not on port 80
« Reply #1 on: January 10, 2004, 01:34:42 PM »

Anthony

Re: Ibay not on port 80
« Reply #2 on: January 10, 2004, 11:46:26 PM »
Thanks Henk.

That moved the primary ibay onto port 10080, but not any of the other ibays.
I checked out the httpd.conf file and sure enough, the virtual host for 10080 is
only for 'primary'.      

I have looked for more doco on the rpm but cant see any.

Scott Fuelberth

Re: Ibay not on port 80
« Reply #3 on: January 11, 2004, 02:54:05 AM »
I did this it will keep Apache listening on 80 and 443 (modified from http://www.familybrown.org/howtos/listen-port-howto.html):

cp /etc/e-smith/templates/etc/httpd/conf/httpd.conf/35Listen80 /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/
cp /etc/e-smith/templates/etc/httpd/conf/httpd.conf/80*VirtualHosts /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/

then in /etc/e-smith/templates-custom/httpd/conf/httpd.conf  modify the following

mv 35Listen80 35Listen(Port to Listen To)

in here change all references to 80 to the port you want to listen to
I use 10080 like the apache port change contrib

then in 80NameVirtualHosts add
NameVirtualHost 0.0.0.0:(Port to Listen to)

in 80VirtualHosts

change:
foreach my $port (qw(80 443)) to foreach my $port (qw(80 443 (Port to Change to - no brackets))  

/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
/etc/rc.d/init.d/httpd-e-smith restart

Now your changes are saved for any updates and the virtual hosts should all use the added port(s)

Hope that helps.

I haven't played with changing the SSL stuff yet.  

However if you go to /etc/e-smith/templates/etc/httpd/conf/httpd.conf and then grep 443 *
You should find all the config files for port 443.  I would imagine you just need to modify those and the 80*VirtualHosts files to point to another port than 443.  Then expand the httpd.conf template again and restart apache.  The SSL part is speculation.

Anthony

Re: Ibay not on port 80
« Reply #4 on: January 11, 2004, 10:42:28 AM »
Thanks Scott.

I tried your method and it works a treat!

I have reposted your instructions with corrections for 2 minor typos:


cp /etc/e-smith/templates/etc/httpd/conf/httpd.conf/35Listen80 /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/35Listen80

cp /etc/e-smith/templates/etc/httpd/conf/httpd.conf/80*VirtualHosts /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/.

then in /etc/e-smith/templates-custom/httpd/conf/httpd.conf modify the following

mv 35Listen80 35Listen(Port to Listen To)

in here change all references to 80 to the port you want to listen to
I use 10080 like the apache port change contrib

then in 80NameVirtualHosts add
NameVirtualHost 0.0.0.0:(Port to Listen to)

in 80VirtualHosts

change:
foreach my $port (qw(80 443)) to foreach my $port (qw(80 443 (Port to Change to - no brackets))

/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
/etc/rc.d/init.d/httpd-e-smith restart

Now your changes are saved for any updates and the virtual hosts should all use the added port(s)

gordo

Ibay not on port 80
« Reply #5 on: April 24, 2004, 05:36:38 AM »
I have ran these last steps at the console and my server-manager now refuses to open via server console or web. I have tried various ports in connection with the URL with no success. Any ideas?