Vasiljevic Zoran wrote:
> He you socket/driver gurus out there!
> 
> What are my options if I want to have NS listen
> to more than one port?
> 
> We have the setup with just one virtual servers
> and listen on 0.0.0.0 address (all interfaces).
> What we would like to do is to listen on 1 more
> port but if possible from the same virtual server.
> I would not like to complicate things by introducing
> a second virtual server, it at all possible.
> 
> Ideas?

Naviserver may have changed enough underneath to be different here, but 
in aolserver, you can load the nssock module twice under different names 
and configure them separately.  Kind of like how the ssl driver is 
loaded separately from the plain socket driver.

I've used a config like this to accomplish it:

[ns/server/s/modules]
ns_param nssock nssock.so
ns_param nssock2 nssock.so

[ns/server/s/module/nssock]
ns_param Address bla.example.com
ns_param Port 80

[ns/server/s/module/nssock2[
ns_param Address bla.example.com
ns_param Port 8822

-J

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
naviserver-devel mailing list
naviserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/naviserver-devel

Reply via email to