Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: Anthony 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?
-
Think this is what you're looking for:
http://mirror.contribs.org/smeserver/contribs/mblotwijk/Contribs/httpd10080/
-
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.
-
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.
-
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)
-
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?