Re: [naviserver-devel] Explanation of last changes

2006-09-07 Thread Mike
On 9/7/06, Vlad Seryakov <[EMAIL PROTECTED]> wrote: I am not insisting on doing it the way i did but it seemed to me very logical and not breaking overall NS architecture or model. But of course, suggestions are welcome, this is development version under discussion. My 2c: I like Stephen's sug

Re: [naviserver-devel] Explanation of last changes

2006-09-07 Thread Vlad Seryakov
Vlad Seryakov wrote: Hmm, not sure. The nsdb module is also a global module. But it's kinda weird... I checked, nsdb cannot be loaded globally, expects not-NULL server, so we have only nssock that can be loaded globally and actually for nssock itself it does not matter because driver/c uses

Re: [naviserver-devel] Explanation of last changes

2006-09-07 Thread Vlad Seryakov
Hmm, not sure. The nsdb module is also a global module. But it's kinda weird... I checked, nsdb cannot be loaded globally, expects not-NULL server, so we have only nssock that can be loaded globally and actually for nssock itself it does not matter because driver/c uses SetServer anyway to

Re: [naviserver-devel] Explanation of last changes

2006-09-07 Thread Stephen Deasey
On 9/7/06, Vlad Seryakov <[EMAIL PROTECTED]> wrote: > > It isn't a dummy server, it's needed. The current example-config.tcl > is wrong in a number of respects, for example this comment: > > # > # Server-level configuration > # > # There is only one server in naviserver, but this is helpful whe

Re: [naviserver-devel] Explanation of last changes

2006-09-07 Thread Vlad Seryakov
It isn't a dummy server, it's needed. The current example-config.tcl is wrong in a number of respects, for example this comment: # # Server-level configuration # # There is only one server in naviserver, but this is helpful when multiple # servers share the same configuration file. This file

Re: [naviserver-devel] Explanation of last changes

2006-09-07 Thread Stephen Deasey
On 9/7/06, Vlad Seryakov <[EMAIL PROTECTED]> wrote: Auto magic i do not like myself but it seems too restrictive to have some dummy server definition to start server if there will be only one server anyway. Virtual servers are good feature for advanced use, we used them before when had multiple s

Re: [naviserver-devel] Explanation of last changes

2006-09-07 Thread Vlad Seryakov
Auto magic i do not like myself but it seems too restrictive to have some dummy server definition to start server if there will be only one server anyway. Virtual servers are good feature for advanced use, we used them before when had multiple servers. But to start one simple web server, i thi

Re: [naviserver-devel] Explanation of last changes

2006-09-07 Thread Stephen Deasey
On 9/7/06, Vlad Seryakov <[EMAIL PROTECTED]> wrote: - if no servers defined, it will run server "default", i.e. it silently creates server "default" in config section "ns/servers" Er, no. No crazy magic to auto-create config behind your back. Virtual servers just aren't complicated. They'r

Re: [naviserver-devel] Explanation of last changes

2006-09-07 Thread Stephen Deasey
On 9/7/06, Vlad Seryakov <[EMAIL PROTECTED]> wrote: - if nscp loaded without settings, it will listen on 127.0.0.1 port 2080 and will accept connections with empty username and password. I think this is reasonable for development server. This is insecure as a default and we have to change i

[naviserver-devel] Explanation of last changes

2006-09-06 Thread Vlad Seryakov
I would like to put some explanation about my last commit because it looks like a lot of stuff changed but actually not. The purpose was to run with smallest possible nsd.tcl with reasonable defaults. The rest is tuning and just to run development or test server i do not need several kilobyt