Difference between revisions of "Conf/Servers"
Jump to navigation
Jump to search
Line 31: | Line 31: | ||
: Variance factor for threadtimeout and maxconnections to prevent mass mortality of theads (e.g. +-20%) | : Variance factor for threadtimeout and maxconnections to prevent mass mortality of theads (e.g. +-20%) | ||
− | + | '''Limits''' | |
; [[Conf/Parameters/Maxline|maxline]] | ; [[Conf/Parameters/Maxline|maxline]] | ||
:Max line length from client | :Max line length from client | ||
− | + | '''Directory listings can be generated with an ADP or a Tcl proc''' | |
; [[Conf/Parameters/Directoryadp|directoryadp]] | ; [[Conf/Parameters/Directoryadp|directoryadp]] | ||
:Choose one or the other | :Choose one or the other | ||
Line 45: | Line 45: | ||
:Can be simple or fancy (for ns_dirlist) | :Can be simple or fancy (for ns_dirlist) | ||
− | + | '''Miscellaneous''' | |
; [[Conf/Parameters/Checkmodifiedsince|checkmodifiedsince]] | ; [[Conf/Parameters/Checkmodifiedsince|checkmodifiedsince]] | ||
Line 54: | Line 54: | ||
:tolower, toupper, preserve | :tolower, toupper, preserve | ||
− | + | '''Internal redirects''' | |
; [[Conf/Parameters/404|404]] | ; [[Conf/Parameters/404|404]] | ||
Line 63: | Line 63: | ||
− | + | '''Fastpath serves HTML''' | |
; [[Conf/Parameters/Cache|cache]] | ; [[Conf/Parameters/Cache|cache]] | ||
Line 74: | Line 74: | ||
: Use mmap() for cache; default: false | : Use mmap() for cache; default: false | ||
− | ; [[Conf/Parameters/Directoryfile | + | ; [[Conf/Parameters/Directoryfile (fastpath)|directoryfile (fastpath)]] |
:String. Directory index/default page to look for. | :String. Directory index/default page to look for. | ||
:Optional, default is directoryfile parameter set in | :Optional, default is directoryfile parameter set in | ||
:ns/server/${servername} section. | :ns/server/${servername} section. | ||
− | ; [[Conf/Parameters/Directorylisting | + | ; [[Conf/Parameters/Directorylisting (fastpath)|directorylisting (fastpath)]] |
:Directory listing style. Optional, can be "fancy" or "simple". | :Directory listing style. Optional, can be "fancy" or "simple". | ||
− | ; [[Conf/Parameters/Directoryproc | + | ; [[Conf/Parameters/Directoryproc (fastpath)|directoryproc (fastpath)]] |
:String. Name of Tcl proc to use to display | :String. Name of Tcl proc to use to display | ||
:directory listings. Optional, default is to use | :directory listings. Optional, default is to use | ||
:_ns_dirlist. You can either specify directoryproc, or directoryadp - not both. | :_ns_dirlist. You can either specify directoryproc, or directoryadp - not both. | ||
− | ; [[Conf/Parameters/Directoryadp | + | ; [[Conf/Parameters/Directoryadp (fastpath)|directoryadp (fastpath)]] |
:String. Name of ADP page to use to display directory | :String. Name of ADP page to use to display directory | ||
:listings. Optional. You can either specify | :listings. Optional. You can either specify | ||
− | + | '''Tcl interpreter''' | |
; [[Conf/Parameters/Debug|debug]] | ; [[Conf/Parameters/Debug|debug]] | ||
:Names of files sourced is logged | :Names of files sourced is logged |
Revision as of 10:45, 21 December 2011
ns_section "ns/servers"
- $server
- Name of virtual server.
Server parameters
- directoryfile
- List of files to use (index.html)
- pageroot
- Directory under which all pages live
Tuning options
- connsperthread
- Normally there's one conn per thread
- maxthreads
- Tune this to scale your server
- minthreads
- Tune this to scale your server
- threadtimeout
- Idle timeout for connection threads
- maxconnections
- Max connections per connection thread before it is shut down
- spread
- Variance factor for threadtimeout and maxconnections to prevent mass mortality of theads (e.g. +-20%)
Limits
- maxline
- Max line length from client
Directory listings can be generated with an ADP or a Tcl proc
- directoryadp
- Choose one or the other
- directoryproc
- ...but not both!
- directorylisting
- Can be simple or fancy (for ns_dirlist)
Miscellaneous
- checkmodifiedsince
- Check url if no If-Modified-Since?
- enableaolpress
- Enable extra features used by AOLpress
- headercase
- tolower, toupper, preserve
Internal redirects
- 404
- Not Found error page
- 500
- Server Error page
Fastpath serves HTML
- cache
- Enable cache for normal URLs; default: false
- cachemaxentry
- Largest file size allowable in cache; default
- mmap
- Use mmap() for cache; default: false
- directoryfile (fastpath)
- String. Directory index/default page to look for.
- Optional, default is directoryfile parameter set in
- ns/server/${servername} section.
- directorylisting (fastpath)
- Directory listing style. Optional, can be "fancy" or "simple".
- directoryproc (fastpath)
- String. Name of Tcl proc to use to display
- directory listings. Optional, default is to use
- _ns_dirlist. You can either specify directoryproc, or directoryadp - not both.
- directoryadp (fastpath)
- String. Name of ADP page to use to display directory
- listings. Optional. You can either specify
Tcl interpreter
- debug
- Names of files sourced is logged
- nsvbuckets
- No. of buckets to hold nsv's
- library
- Private tcl library for the server