Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: svetlo56 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
-
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.
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.
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.
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
-
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)