How to configure single server to listen on multiple TCP ports

From AOLserver Wiki
Revision as of 10:07, 6 March 2007 by Jamshed (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

(This question was asked at AOLSERVER@LISTSERV.AOL.COM mailing lists and 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