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

Title: How can I change the http ports and the web https to http access ?
Post 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
Title: Re: How can I change the http ports and the web https to http access ?
Post by: CharlieBrady on December 05, 2007, 07:50:11 PM
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.
Title: Re: How can I change the http ports and the web https to http access ?
Post by: m on December 05, 2007, 08:10:21 PM
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?
Title: Re: How can I change the http ports and the web https to http access ?
Post by: Confucius on December 06, 2007, 12:58:35 AM
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.
Title: Re: How can I change the http ports and the web https to http access ?
Post by: CharlieBrady on December 06, 2007, 02:16:57 AM
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".
Title: Re: How can I change the http ports and the web https to http access ?
Post by: yorielg on December 06, 2007, 02:42:58 PM
okl, where ius the http.conff, to ediut the webdrirectoy?
Title: Re: How can I change the http ports and the web https to http access ?
Post by: brentonv on December 08, 2007, 12:52:16 AM
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

Quote
{
$OUT = allow_tcp_in(81, 1);
}

2: /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/intranet81

Quote
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
Title: Re: How can I change the http ports and the web https to http access ?
Post by: CharlieBrady on December 08, 2007, 03:38:45 AM
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.