Difference between revisions of "Conf/Server"
Jump to navigation
Jump to search
Line 114: | Line 114: | ||
:Roll log on SIGHUP | :Roll log on SIGHUP | ||
+ | '''CGI interface -- nscgi''' | ||
+ | |||
+ | ; [[Conf/Parameters/Debug(nscgi) | Debug ]] | ||
+ | :Be chatty in log | ||
+ | |||
+ | ; [[Conf/Parameters/gethostbyaddr | gethostbyaddr ]] | ||
+ | :Whether to do reverse DNS lookups | ||
+ | |||
+ | ; [[Conf/Parameters/limit | limit ]] | ||
+ | :Max number of concurrent CGI processes | ||
+ | |||
+ | ; [[Conf/Parameters/maxoutput | maxoutput ]] | ||
+ | :Max bytes allowed from external process | ||
+ | |||
+ | ; [[Conf/Parameters/buffersize | buffersize ]] | ||
+ | :Buffer output from external process | ||
+ | |||
+ | ; [[Conf/Parameters/map(GET) | map(GET) ]] | ||
+ | :Where your CGI executables live (GET) | ||
+ | |||
+ | ; [[Conf/Parameters/map(POST) | map(POST) ]] | ||
+ | :Where your CGI executables live (POST) | ||
+ | |||
+ | '''Unix domain socket driver -- nsunix''' | ||
+ | ; [[Conf/Parameters/hostname(NSUNIX) |hostname(NSUNIX) ]] | ||
+ | :Hostname used in response to client | ||
+ | |||
+ | ; [[Conf/Parameters/Port(NSUNIX) | Port(NSUNIX) ]] | ||
+ | :Port to listen on | ||
+ | |||
+ | ; [[Conf/Parameters/socketfile(NSUNIX) | socketfile(NSUNIX) ]] | ||
+ | :UNIX domain socket driver | ||
+ | |||
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
# | # |
Revision as of 12:28, 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
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
- 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 # ns_section "ns/server/${servername}/module/nsvhr" ns_param busyurl "url" ;# Redirect here if back-end times out ns_param errorurl "url" ;# Redirect here on proxy errors ns_param method "GET" ;# Methods allowed to proxy ns_param method "POST" ;# Methods allowed to proxy (can have >1) ns_param timeout 30 ;# Timeout waiting for back-end # Register hosts to proxy ns_section "ns/server/${servername}/module/nsvhr/maps" ns_param "www.tcpsocket.com" "http://127.0.0.0:2000" ;# HTTP proxy ns_param "www.domainsocket.com" "unix://somehost" ;# Domain socket