Excellent Dossy, Thats exactly what i was looking for.

regards,

Jamshed 

-----Original Message-----
From: AOLserver Discussion on behalf of Dossy Shiobara
Sent: Mon 3/5/2007 3:06 PM
To: [email protected]
Subject: Re: [AOLSERVER] listening on more than one TCP port
 
On 2007.03.05, Jamshed Qureshi <[EMAIL PROTECTED]> wrote:
> Is it possible to configure single aolserver instance to listen on 2
> TCP ports?

Absolutely.  You simply load the "nssock" module twice:

#
# 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

#
# Modules to load
#

ns_section "ns/server/${servername}/modules"
    ns_param nssock ${bindir}/nssock.so
    ns_param nssock2 ${bindir}/nssock.so

-- Dossy

-- 
Dossy Shiobara              | [EMAIL PROTECTED] | http://dossy.org/
Panoptic Computer Network   | http://panoptic.com/
  "He realized the fastest way to change is to laugh at your own
    folly -- then you can let go and quickly move on." (p. 70)


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.



--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.

Reply via email to