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