Difference between revisions of "Conf/Server"

From AOLserver Wiki
Jump to navigation Jump to search
Line 5: Line 5:
 
:Extensions to parse as ADP's
 
:Extensions to parse as ADP's
  
; [[Conf/Parameters/Map.html | map.html]]
+
; [[Conf/Parameters/Map(html) | map(html)]]
 
:Any extension can be mapped
 
:Any extension can be mapped
  

Revision as of 12:43, 21 December 2011

ns_section "ns/server/${servername}/adp"

ADP features

map
Extensions to parse as ADP's
map(html)
Any extension can be mapped
enableexpire
Set "Expires: now" on all ADP's
enabledebug
Turn on Tclpro debugging with "?debug"
debuginit
Debug procedure

ADP tuning

cache (Tuning)
In-memory cache of ADP's
cachesize
In-memory cache size of ADP's
errorpage
Pretty-print ADP errors with an ADP
startpage
Page to include for all ADP's

ADP custom parsers -- see adp.c

adp
The simple parser looks for <\% ... \%>
fancy
The fancy parser does a lot more.

Socket driver module (HTTP) -- nssock

port
Port for HTTP (typically 80)
hostname
This is not the same as your hostname
port
Port for HTTP (typically 80)
address
This is not the same as your host addr
location
URL for auto-redirects (trailing slash)
maxinput
Maximum file size for uploads in bytes, default is 1MB, new in AOLserver 4.01
keepwait
Max time conn is kept alive (keepalive)
(set to 0 to disable keepalive)

Socket driver module (HTTPS) -- nsssl


port (HTTPS)
Port for HTTPS (typically 443)
hostname (HTTPS)
his is not the same as your hostname
address (HTTPS)
This is not the same as your host addr
keyfile
certfile

Control port -- nscp

port (NSCP)
Control port listens on port 9999
address (NSCP)
For security, use 127.0.0.1 only

Control port users

user
sample user="nsadmin", pw="x"

Access log -- nslog

file


formattedtime
true=common log format
logcombined
true==NCSA combined format
maxbackup
Max number to keep around when rolling
rollhour
Time to roll log
rolllog
Should we roll log?
rollonsignal
Roll log on SIGHUP

CGI interface -- nscgi

Debug
Be chatty in log
gethostbyaddr
Whether to do reverse DNS lookups
limit
Max number of concurrent CGI processes
maxoutput
Max bytes allowed from external process
buffersize
Buffer output from external process
map(GET)
Where your CGI executables live (GET)
map(POST)
Where your CGI executables live (POST)

Unix domain socket driver -- nsunix

hostname(NSUNIX)
Hostname used in response to client
Port(NSUNIX)
Port to listen on
socketfile(NSUNIX)
UNIX domain socket driver

Virtual Hosting redirector -- nsvhr

busyurl
Redirect here if back-end times out
errorurl
Redirect here on proxy errors
method
Methods allowed to proxy
method (POST)
Methods allowed to proxy (can have >1)
timeout
Timeout waiting for back-end

Register hosts to proxy


"www.tcpsocket.com"
HTTP proxy


"www.domainsocket.com"
Domain socket