^TipsAnd...

?TableOfContents

php4 as CGI

you do not need the php4-aolserver module to run php4 aplications.

aolserver config file:

ns_section ns/server/${server}/module/nscgi
ns_param   map     "GET  *.php"
ns_param   map     "POST *.php"
ns_param   Interps CGIinterps

ns_section ns/interps/CGIinterps
ns_param .php /usr/local/bin/aolserver-php4-cgi-wrapper

/usr/local/bin/aolserver-php4-cgi-wrapper:

#!/bin/sh
SCRIPT_FILENAME=$1
export SCRIPT_FILENAME
exec php4-cgi

Debian CGI setup

ns/section ns/server/${server}/module/nscgi
ns_param   map     "GET  /cgi-bin  /usr/lib/cgi-bin"
ns_param   map     "POST /cgi-bin  /usr/lib/cgi-bin"

Virtual Hosting

The nice config at magma.com.ni for multiple virtual hosting:

http://www.magma.com.ni/sw/aolserver/

Changing File Upload Limit

From: Dave Bauer <dave@thedesignexperience.org>
Subject: Re: tdav for aolserver
To: Georg Lehner <jorge@magma.com.ni>
Date: Fri, 16 Sep 2005 20:39:13 -0400

Thanks for the information. Really tDAV was designed to use some sort of
database or other better authentication than nsperm, so I didn't look
into that.

Regaring the 1mb limit, this is an AOLserver parameter 

There are two related parameters for nssock on AOLserver 4

ns_section ns/server/${server}/module/nssock
ns_param   timeout            120
ns_param   address            $address
ns_param   hostname           $hostname
ns_param   port               $httpport
# setting maxinput higher than practical may leave the
# server vulnerable to resource DoS attacks
# see http://www.panoptic.com/wiki/aolserver/166
ns_param   maxinput           [expr 20 * 1024 *1024] ;# Maximum File Size for uploads in bytes
ns_param   recvwait           [expr 5 * 60] ;#Maximum request time in minutes

maxinput which sets the largest allowed uploaded file, and recvwait,
which sets the timeout for how long an upload is allowed. Both of these
are designed to prevent a denial of service attack.

See Also:

TipsAnteris TipsOpenAcs


?CategoryWebservices ?LangEn