Re: [AOLSERVER] Fwd: AOLServer 4

2003-03-28 Thread Nathan Folkman
We're trying to get in touch with the PHP team to address. This is one
of the potential side effects of moving to 4.0 from prior 3.x versions
since virtual server support is now back. Pretty easy to address - be
sure to check out Mark's porting document:
http://aolserver.sourceforge.net/docs/devel/c/
as4_moduleportingguide.html.
Stay tuned!

- Nathan

On Friday, March 28, 2003, at 10:17 AM, Andrey Chichak wrote:

It works! But only when for 1 virtual host enabled.


--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list: http://www.aolserver.com/listserv.html
List information and options: http://listserv.aol.com/


Re: [AOLSERVER] Fwd: AOLServer 4

2003-03-28 Thread Andrey Chichak
On Wed, 26 Mar 2003 14:09:04 -, Tim Moss <[EMAIL PROTECTED]>
wrote:

>> And one more problem :
>> PHP does not work with virtual hosts enabled :o(
>
>Bah! you can do anything you want in Tcl, if you can't it's not worth
doing!

It works! But only when for 1 virtual host enabled.


--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list: http://www.aolserver.com/listserv.html
List information and options: http://listserv.aol.com/


Re: [AOLSERVER] Fwd: AOLServer 4

2003-03-27 Thread Bas Scheffers
> I want migrate from apache+php to aolserver+python :o)
Ehrm, if you are porting anyway, why not go with the native language for
AOLserver?

Bas.


--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list: http://www.aolserver.com/listserv.html
List information and options: http://listserv.aol.com/


Re: [AOLSERVER] Fwd: AOLServer 4

2003-03-27 Thread Peter M. Jansson
On Thursday, March 27, 2003, at 02:22 AM, Andrey Chichak wrote:

I want migrate from apache+php to aolserver+python :o)
Do you know about PyWX?

   http://pywx.idyll.org/

--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list: http://www.aolserver.com/listserv.html
List information and options: http://listserv.aol.com/


Re: [AOLSERVER] Fwd: AOLServer 4

2003-03-26 Thread Andrey Chichak
On Wed, 26 Mar 2003 14:09:04 -, Tim Moss <[EMAIL PROTECTED]>
wrote:

>> And one more problem :
>> PHP does not work with virtual hosts enabled :o(

>Bah! you can do anything you want in Tcl, if you can't it's not worth
doing!
>;-)

I want migrate from apache+php to aolserver+python :o)

Andrey


--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list: http://www.aolserver.com/listserv.html
List information and options: http://listserv.aol.com/


Re: [AOLSERVER] Fwd: AOLServer 4

2003-03-26 Thread Andrey Chichak
With this config file I became understand AOLserver configuring, but some
problem is here.

Line :
ns_paramenabletclpagestrue ;# allow .tcl files to be parsed

has to be in
ns_section  ns/server/${servername}

And one more problem :
PHP does not work with virtual hosts enabled :o(

Andrey Chichak.


--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list: http://www.aolserver.com/listserv.html
List information and options: http://listserv.aol.com/


Re: [AOLSERVER] Fwd: AOLServer 4

2003-03-26 Thread Tim Moss
> With this config file I became understand AOLserver configuring, but some
problem is here.
>
> Line :
> ns_paramenabletclpagestrue ;# allow .tcl files to be parsed
>
> has to be in
> ns_section  ns/server/${servername}




Yes, my mistake.
I had modified my version of modules/tcl/file.tcl to look for enabletclpages
on a per virtual server basis.




> And one more problem :
> PHP does not work with virtual hosts enabled :o(

Bah! you can do anything you want in Tcl, if you can't it's not worth doing!
;-)


--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list: http://www.aolserver.com/listserv.html
List information and options: http://listserv.aol.com/


Re: [AOLSERVER] Fwd: AOLServer 4

2003-02-20 Thread Tim Moss
out 30  ;# 
Connection timeout
#ns_paramsendwait30  ;# 
Timeout for sending of data
#ns_paramrecvwait30  ;# 
Timeout for receiving data
#ns_paramclosewait   2   ;# 
Timeout for closing socket
#ns_paramkeepwait30  ;# 
Keepalive inactivity timeout
#ns_parambacklog 5   ;# 5 
pending connections
#ns_paramport8080;# 
Port for HTTP (typically 80)
#ns_paramlocation""  ;# 
URL for auto-redirects (trailing slash)
#ns_section  ns/server/${servername}/modules
#ns_paramnssock   ${bindir}/nssock${ext}


#ns_section  ns/server/$servername/module/nssock8080
#ns_paramhostname$hostname   ;# 
This is not the same as your hostname
#ns_paramaddress $address;# 
This is not the same as your host addr
#ns_parambufsize [expr 16 * 1024];# IO 
buffer size
#ns_paramrcvbuf  0   ;# 
Use OS defaults
#ns_paramsndbuf  0   ;# 
Use OS defaults
#ns_paramsocktimeout 30  ;# 
Connection timeout
#ns_paramsendwait30  ;# 
Timeout for sending of data
#ns_paramrecvwait30  ;# 
Timeout for receiving data
#ns_paramclosewait   2   ;# 
Timeout for closing socket
#ns_paramkeepwait30  ;# 
Keepalive inactivity timeout
#ns_parambacklog 5   ;# 5 
pending connections
#ns_paramport8080;# 
Port for HTTP (typically 80)
#ns_paramlocation"" ;# URL 
for auto-redirects (trailing slash)
#ns_section  ns/server/${servername}/modules
#ns_paramnssock8080  ${bindir}/nssock${ext}

#}

}




###
#
# Control port -- nscp
#
# nscp does not load unless nscp_user is a valid user.
#
# nscp: Uncomment the sample password and log in with "nsadmin", password "x",
#   type "ns_crypt newpassword salt" and put the encrypted string below.
#
###
set nscp_port   
set nscp_addr   127.0.0.1
#sample user="nsadmin", pw="x".
set nscp_user   nsadmin:t2GqvvaiIUbF2:
ns_section  ns/server/${servername}/module/nscp
ns_paramaddress $nscp_addr
ns_paramport$nscp_port
ns_paramechopasswd  false
ns_paramcpcmdloggingtrue
ns_section  ns/server/${servername}/module/nscp/users
ns_paramuser$nscp_user
if { $nscp_user != "" } {
ns_section  ns/server/${servername}/modules
ns_param nscp${bindir}/nscp${ext}
if ![string match "127.0.0.1" $nscp_addr] {
# Anything but 127.0.0.1 is not recommended.
ns_log warning "nsd.tcl: nscp listening on ${nscp_addr}:${nscp_port}"
}
} else {
ns_log warning "nsd.tcl: nscp not loaded -- user/password is not set."
}
###
ns_log notice "nsd.tcl: finished reading config file."













> -Original Message-
> From: RK [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 19, 2003 6:46 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Re: [AOLSERVER] Fwd: AOLServer 4
> 
> 
> Tim,
> 
> Could you please email me the sample config files you have 
> mentioned in your email? I am new to Aolserver and only now 
> getting the hang of things.
> 
> Thank you,
> Raj
> 



I. To remove yourself from this list:

Send a message to "[EMAIL PROTECTED]"  with the following text in
the BODY of your message:

signoff aolserver

II. For a complete list of listserv options please visit:

http://listserv.aol.com/

III. For more AOLserver information please visit:

http://www.aolserver.com/



sample_nsd.tcl
Description: Binary data


Re: [AOLSERVER] Fwd: AOLServer 4

2003-02-09 Thread Tim Moss
I agree with Peter here on every point - I've got most of them if not all of
them working in practice.
The only thing I'd add which he didn't make explicitly clear is that you can
have sites with the same names, but different ports using different virtual
servers if you so wish.

If you want an example config file then Peter kindly posted some examples to
this list a couple of weeks ago.

If you can't find them, then please just ask I'll post mine  (In fact Nathan
should already have it as I recently emailed it to him)

> -Original Message-
> From: AOLserver Discussion [mailto:[EMAIL PROTECTED]]On Behalf
> Of Peter M. Jansson
> Sent: Sunday, February 09, 2003 5:02 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [AOLSERVER] Fwd: AOLServer 4
>
>
> On Sat, 8 Feb 2003, Nathan Folkman wrote:
>
> > Can someone who has actually used these features help Chris out? Thanks!
>
> > 1.  Can you specify a document root for each host
>
> Yes, and, in fact, you must.  Each virtual server is separate, and there
> won't be any "inheritence" of features between them, so if you want a
> virtual server to have a particular feature, you must explicitly enable
> it.
>
> > 2.  Are all sourced Tcl files available to all hosts or can you
> > limit this via config
>
> Not necessarily.  Each virtual server gets its own Tcl interpreters. Any
> Tcl you have in ${AOLSERVER_ROOT}/modules/tcl will be sourced by all
> virtual servers, per the usual instructions (stuff in the dir is done
> alphabetically; subdirs are only loaded if there is a "ns_param 
> Tcl" in the modules section for the virtual).  Stuff in
> ${AOLSERVER_ROOT}/servers/$server/modules/tcl is strictly per-virtual
> server.
>
> > 3.  Can you do name and ip based virtual hosting
>
> Yes.  You can load the nssock module globally, which enables host-based
> virtual servers.  Additionally, you can load nssock on a per-module basis
> and nail a particular virtual server to a particular IP address.  I don't
> believe you have a choice about which nssock instance gets the name-based
> virtual servers; it's always the global one.
>
> Scott, want to comment on nsopenssl?
>



Re: [AOLSERVER] Fwd: AOLServer 4

2003-02-08 Thread Peter M. Jansson
On Sat, 8 Feb 2003, Nathan Folkman wrote:

> Can someone who has actually used these features help Chris out? Thanks!

> 1.  Can you specify a document root for each host

Yes, and, in fact, you must.  Each virtual server is separate, and there
won't be any "inheritence" of features between them, so if you want a
virtual server to have a particular feature, you must explicitly enable
it.

> 2.  Are all sourced Tcl files available to all hosts or can you
> limit this via config

Not necessarily.  Each virtual server gets its own Tcl interpreters. Any
Tcl you have in ${AOLSERVER_ROOT}/modules/tcl will be sourced by all
virtual servers, per the usual instructions (stuff in the dir is done
alphabetically; subdirs are only loaded if there is a "ns_param 
Tcl" in the modules section for the virtual).  Stuff in
${AOLSERVER_ROOT}/servers/$server/modules/tcl is strictly per-virtual
server.

> 3.  Can you do name and ip based virtual hosting

Yes.  You can load the nssock module globally, which enables host-based
virtual servers.  Additionally, you can load nssock on a per-module basis
and nail a particular virtual server to a particular IP address.  I don't
believe you have a choice about which nssock instance gets the name-based
virtual servers; it's always the global one.

Scott, want to comment on nsopenssl?



[AOLSERVER] Fwd: AOLServer 4

2003-02-08 Thread Nathan Folkman
Can someone who has actually used these features help Chris out? Thanks!

- Nathan
--- Begin Message ---
Hi Nate,

Can you give me the run-down on the virtual hosting capabilities in AOLServer 4.  I took a look at the config, but had a few more questions.  

1.  Can you specify a document root for each host
2.  Are all sourced Tcl files available to all hosts or can you limit this via config
3.  Can you do name and ip based virtual hosting

Any info would be great.

Chris Goehring

--- End Message ---