[naviserver-devel] How to listen on 2 ports?

2008-10-24 Thread Vasiljevic Zoran
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?

Zoran


-
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=100url=/
___
naviserver-devel mailing list
naviserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/naviserver-devel


Re: [naviserver-devel] How to listen on 2 ports?

2008-10-24 Thread Vlad Seryakov
Just load nssock second time with different name

ns_section ns/server/modules
ns_param nssock nssock.so
ns_param nssock2 nssock.so

ns_section ns/server/module/nssock
ns_paramport 90

ns_section ns/server/module/nssock2
ns_paramport 81

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?
 
 Zoran
 
 
 -
 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=100url=/
 ___
 naviserver-devel mailing list
 naviserver-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/naviserver-devel
 


-
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=100url=/
___
naviserver-devel mailing list
naviserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/naviserver-devel


Re: [naviserver-devel] How to listen on 2 ports?

2008-10-24 Thread Jeff Rogers
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=100url=/
___
naviserver-devel mailing list
naviserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/naviserver-devel