Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: yorielg on December 05, 2007, 05:28:57 PM
-
Hi, i want to change the http server from 80 to 8383, but i dont know about centos.. and how he works, them i cant the change the webmail address..
Tks
-
Hi, i want to change the http server from 80 to 8383 ...
No, don't do that. Set up a portforward from port 8383 to localhost:80.
-
No, don't do that. Set up a portforward from port 8383 to localhost:80.
Charlie,
is there a specific reason why the ports are hardcoded in the templates and not configurable via properties?
-
That's for the same reason as that most countries expect you to drive on the right side of the road. These are agreements to make things become standard and therefore easier for all people to use. That is, for the normal purposes ofcourse.
-
Charlie,
is there a specific reason why the ports are hardcoded in the templates and not configurable via properties?
Yes, those services run on "well known ports".
-
okl, where ius the http.conff, to ediut the webdrirectoy?
-
i personally would not try to modify webmail, however this is what i did to create an intranet on port 81.
you need to create/modify 2 templates:
1: /etc/e-smith/templates-custom/etc/rc.d/init.d/masq/allow81
{
$OUT = allow_tcp_in(81, 1);
}
2: /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/intranet81
Listen 0.0.0.0:81
NameVirtualHost 0.0.0.0:81
<VirtualHost 0.0.0.0:81>
ServerName 10.0.1.2:81
DocumentRoot /home/e-smith/files/ibays/intranet/html
ScriptAlias /cgi-bin /home/e-smith/files/ibays/intranet/cgi-bin
Alias /files /home/e-smith/files/ibays/intranet/files
</VirtualHost>
you should be able to work out what you need to do from this.
regards,
brenton
-
you should be able to work out what you need to do from this.
yorielg doesn't need to do anything in the templates or configuration file. Port forwarding in the server-manager will do the job.