Re: [AOLSERVER] Forward instead of include

2005-09-27 Thread Sarath PS
thanks Rob Seeger, This will help me for now, although i have to make some changes to my code to avoid 'include loop' On Mon, 2005-09-26 at 08:59 -0400, Robert Seeger wrote: I use the following code to forward requests, which seems to work ok. proc ladp_forward {adpFile} {

[AOLSERVER] New with TCL: database supported vhosts

2005-09-27 Thread Christian Krause
Hi everybody! I wrote a small TCL script which uses mysqltcl to connect to my mysqld, fetch some data (vhosts with their docroots and errorlogs) and process the data in a template file to set up my vhosts as Bas Scheffers said in the previous virtual hosts thread. But how can I execute

Re: [AOLSERVER] New with TCL: database supported vhosts

2005-09-27 Thread Bas Scheffers
You can just run this script inside nsd.tcl without a problem. As for the template, create a single file for a host, but where you would otherwise put ns_param pageroot /some/dir, put ns_param pageroot $pageroot. Then in your loop, after setting the $pageroot and other variables, simply do:

Re: [AOLSERVER] New with TCL: database supported vhosts

2005-09-27 Thread Fred Peeterman
Hello Bas, Thanks for your help. Then in your loop, after setting the $pageroot and other variables, simply do: source template.tcl. Tcl will open the file an interpret it. From your reply I gather we need to do the following: aolserver4.tcl: ... source script.tcl ... script.tcl:

Re: [AOLSERVER] New with TCL: database supported vhosts

2005-09-27 Thread Christian Krause
Till now I got the following to work: The main configuration file includes a a command to include my script to fetch the data out of the mysql server. This script fetches the domain, document-root and errorlog-path. This seems to work correctly. But the aolserver does still not handle the

Re: [AOLSERVER] New with TCL: database supported vhosts

2005-09-27 Thread Bas Scheffers
Christian Krause said: Last but not least, here is the template file vhtemplate.tcl: --- snip --- ns_param server ${domain} I think here you need to do: # Declare existence of the server ns_section ns/servers ns_param ${domain} ${domain} And: # tie the hostnames to the main nssock driver:

[AOLSERVER] php and AolServer

2005-09-27 Thread Friedrich Dominicus
I've got a unfine problem with that combination. I downloaed php4.4 from the php pages and now the following happens. Sometims the php pages get parsed and displayed correctly on other times I see the source code and on yet other times I just see an empty window. Even with the simples php file I

[AOLSERVER] AOLServer + PHP

2005-09-27 Thread Friedrich Dominicus
It seems the patches are needed for PHP4.4 to get it running under AOLServer, I should have checked before my last mail Regards Friedrich -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] with the body of SIGNOFF

Re: [AOLSERVER] gzip and content acceleration

2005-09-27 Thread Mark Mcgaha
I do not check time stamps in the tcl, but this is what I use: ns_register_filter postauth GET /*.html filter_get_pregz ns_register_filter postauth GET /*.css filter_get_pregz ns_register_filter postauth GET /*.js filter_get_pregz proc filter_get_pregz {why} { if {[string first {gzip}

Re: [AOLSERVER] php and AolServer

2005-09-27 Thread Fred Peeterman
Dear Friedrich, Been there, seen that... See http://www.panoptic.com/wiki/aolserver/1314 for the relevant patch. Also make sure to change the settings for stacksize as documented. If not, aolserver4-nsd will crash! Since you have debian you will need the following files to speed up starting

Re: [AOLSERVER] php and AolServer

2005-09-27 Thread Friedrich Dominicus
Thanks, I do not care about speed yet. It will be more then fast enough for my needs. I just wanted to be sure that I've the chance to make some PHP running under AOLServer, there are other solutions available but it seems quite few PHP solutoins are quite a bit better then what is available as

Re: [AOLSERVER] gzip and content acceleration

2005-09-27 Thread Daniel P. Stasinski
On Tue, 2005-09-27 at 11:24 -0400, Mark Mcgaha wrote: I do not check time stamps in the tcl, but this is what I use: Good alternative solution. Thank you. Daniel -- | --- | Daniel P. Stasinski |

[AOLSERVER] Optimal thread stacksize?

2005-09-27 Thread Daniel P. Stasinski
I'm curious about what stack sizes people are using for their 4.0.x / 4.5 installations. ns_section ns/threads ns_param stacksize [expr 256 * 1024] ns_param mutexmeter true I had 128k and was getting problems with processing ADP's. Doubled it to 256 and the problem occurs less.

[AOLSERVER] aolserver 4.5cvs gzip bug?

2005-09-27 Thread Daniel P. Stasinski
Using curl to get a compressed ADP page I am getting errors at the very end. curl --compressed --trace - -i mydomain.com == Info: Error while processing content unencoding: incorrect data check == Info: Closing connection #0 curl: (61) Error while processing content unencoding: incorrect data

Re: [AOLSERVER] aolserver 4.5cvs gzip bug?

2005-09-27 Thread Nathan Folkman
Any chance you could provide a full trace? Something such as the output from ethereal might be helpful. Alternately, could you provide the relevant AOLserver configuration being used, along with the sample page that is under going compression. Thanks! - n On Sep 27, 2005, at 7:20 PM,