Difference between revisions of "How to configure single server to listen on multiple TCP ports"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
− | (This question was asked at AOLSERVER@LISTSERV.AOL.COM mailing lists and answered by Dossy.) | + | (This question was asked at AOLSERVER@LISTSERV.AOL.COM mailing lists and was answered by Dossy.) |
__NOTOC__ | __NOTOC__ |
Latest revision as of 11:36, 6 March 2007
(This question was asked at AOLSERVER@LISTSERV.AOL.COM mailing lists and was answered by Dossy.)
Single instance of AOLServer can be configured to listen on more than one TCP port simple by loading the "nssock" module twice. Following example shows what modifications are necessary in aolserver config file.
Modify Socket driver module section
# # Socket driver module (HTTP) -- nssock # ns_section "ns/server/${servername}/module/nssock" ns_param port 80 ns_param hostname $hostname ns_param address $address
ns_section "ns/server/${servername}/module/nssock2" ns_param port 81 ns_param hostname $hostname ns_param address $address
Modify Modules section
# # Modules to load #
ns_section "ns/server/${servername}/modules" ns_param nssock ${bindir}/nssock.so ns_param nssock2 ${bindir}/nssock.so