Koozali.org: home of the SME Server

How can I change the http ports and the web https to http access ?

Offline yorielg

  • 2
  • +0/-0
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

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: How can I change the http ports and the web https to http access ?
« Reply #1 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.

Offline m

  • *****
  • 276
  • +0/-0
  • Peet
Re: How can I change the http ports and the web https to http access ?
« Reply #2 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?

Offline Confucius

  • *****
  • 235
  • +0/-0
Re: How can I change the http ports and the web https to http access ?
« Reply #3 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.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: How can I change the http ports and the web https to http access ?
« Reply #4 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".

Offline yorielg

  • 2
  • +0/-0
Re: How can I change the http ports and the web https to http access ?
« Reply #5 on: December 06, 2007, 02:42:58 PM »
okl, where ius the http.conff, to ediut the webdrirectoy?

Offline brentonv

  • ****
  • 71
  • +0/-0
Re: How can I change the http ports and the web https to http access ?
« Reply #6 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
« Last Edit: December 08, 2007, 01:25:35 AM by brentonv »

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: How can I change the http ports and the web https to http access ?
« Reply #7 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.