Difference between revisions of "Conf/Servers"
Jump to navigation
Jump to search
Line 63: | Line 63: | ||
− | '''Fastpath serves HTML''' | + | '''Fastpath serves HTML''' |
; [[Conf/Parameters/Cache|cache]] | ; [[Conf/Parameters/Cache|cache]] | ||
Line 91: | Line 91: | ||
:listings. Optional. You can either specify | :listings. Optional. You can either specify | ||
− | '''Tcl interpreter''' | + | '''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:08, 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
- String. Directory index/default page to look for.
- Optional, default is directoryfile parameter set in
- ns/server/${servername} section.
- directorylisting
- Directory listing style. Optional, can be "fancy" or "simple".
- directoryproc
- 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
- 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