Koozali.org: home of the SME Server

Seecondary webserver on port 8080

Offline svetlo56

  • **
  • 39
  • +0/-0
Seecondary webserver on port 8080
« on: August 24, 2005, 03:43:11 PM »
I want to setup a secondary webserver at port 8080. I know that modification of httpd.conf is necessary:

1. Which of httpd.conf should I modify (there are about a dozen of them on my sme server)

2. I need to change Listen to 8080 instead of 80, should I change anything else?

3. Anything else needs to be changed?

Thanks

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Seecondary webserver on port 8080
« Reply #1 on: August 24, 2005, 07:00:03 PM »
Quote from: "svetlo56"
I want to setup a secondary webserver at port 8080. I know that modification of httpd.conf is necessary:


No, you need an additional httpd.conf.

Quote

1. Which of httpd.conf should I modify (there are about a dozen of them on my sme server)


No, there are only two, and you shouldn't modify either of them. You should create a new one.

Quote

2. I need to change Listen to 8080 instead of 80, should I change anything else?


That depends entirely on what you want to do with the web server. The documentation at http://www.apache.org/ (and elsewhere) should help you a lot.

Quote

3. Anything else needs to be changed?


Yes, you'll need to allow access through the firewall to port 8080. You can do that by creating a custom template fragment /etc/e-smith/templates-custom/etc/rc.d/init.d/masq/45Allow2ndhttp
containing:

{
   $OUT = allow_tcp_in(8080, 1);
}

Then do:

/sbin/e-smith/expand-template /etc/rc.d/init.d/masq
/etc/rc.d/init.d/masq adjust

Offline svetlo56

  • **
  • 39
  • +0/-0
Re: Seecondary webserver on port 8080
« Reply #2 on: August 24, 2005, 07:21:55 PM »
Quote from: "CharlieBrady"
Quote from: "svetlo56"
I want to setup a secondary webserver at port 8080. I know that modification of httpd.conf is necessary:


No, you need an additional httpd.conf.


That depends entirely on what you want to do with the web server. The documentation at http://www.apache.org/ (and elsewhere) should help you a lot.


I can't find anything useful on apache.org. There is a howto on this
http://www.familybrown.org/howtos/listen-port-howto.html

but it's hopelessly outdated and useless.

I would like to see step by step instructions. Thanks

(I disabled firewall on my SME server and enabled 8080 from my external firewall, so that's not a problem. The problem is httpd.conf)