Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: Ian on July 07, 2002, 02:02:49 AM
-
Can some one give me the instructions on how to do this the instructions for 5.1.2 do not work. Please reply quickly if you can.
-
Can anyone help me with this????
-
I'm trying to do the same thing, what I've done so far, is edited 05Port in
/etc/e-smith/templates/etc/httpd/conf/httpd.conf/
No luck there, i've changed the port, there, and restarted the service, no luck, can you tell me what 5.1.2 tells you.
-
http://www.familybrown.org/howtos/listen-port-howto.html go there for the instructions I used but it says you need to modify 2 files but one does nto exist.
-
Well its actually really easy, just some trial and error got it done for me, here's how:
First you want to make the directory
[root@e-smith /root]# mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/
then you want to copy the file 35Listen80 from the original template
[root@e-smith /root]# cp /etc/e-smith/templates/etc/httpd/conf/httpd.conf/35Listen80 /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/
then edit your newy coped file
[root@e-smith /root]# pico /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/35Listen80
which should look like:
{
my $listen_default = "Listen 0.0.0.0:80";
my $mode = db_get($confref, "SystemMode") || "serveronly";
return $listen_default if ($mode eq "serveronly");
my $httpdAccess =
db_get_prop($confref, "httpd-e-smith", "access") || "private";
return $listen_default unless ($httpdAccess eq "private");
# Only selectively bind interfaces if we are in private server/gateway mode
my @ipAddresses = ("127.0.0.1", $LocalIP);
# Remove any duplicate IP addresses
my %ipAddresses = map { $_ => 1 } @ipAddresses;
foreach my $ip (sort keys %ipAddresses)
{
$OUT .= "Listen $ip:80\n";
}
}
just edit the second line 'my $listen_default = "Listen 0.0.0.0:80";' replacing 80 to whatever port you want, and doing the same for the 21st line '$OUT .= "Listen $ip:80\n";' by once again changing the 80 to whatever port you want. exit out of pico and rebuild the template:
[root@e-smith /root]# /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
and then restart apache:
[root@e-smith /root]# service httpd restart
and you should be good to go :)
Sphing
P.S.
Gotta cite my sources, thanks
Dan Brown @ http://www.familybrown.org/howtos/listen-port-howto.html
which need just a little changing for version 5.5
-
I just wanted to say thank you. So thank you very much.
-
Theres actually 2 more files you have to edit if you want your ibays to run on a different port also. They are:
80VirtualHost
80NameVirtualHosts
-
Sphing:
Hi.
Is it possible to still use the /server-manager/ webinterface, when the port is changed?
Coz I´m sooooooo newbie at this Linux thing, so it´s a nice tool to have, untill I get the shell thingy learned :)