Difference between revisions of "Conf/Servers"
Jump to navigation
Jump to search
(Created page with '== ns_section "ns/servers" == ; $server : Name of virtual server. '''Server parameters''' ; |directoryfile …') |
|||
Line 6: | Line 6: | ||
'''Server parameters''' | '''Server parameters''' | ||
− | ; [[Conf/Parameters/Directoryfile | + | ; [[Conf/Parameters/Directoryfile | directoryfile]] |
:List of files to use (index.html) | :List of files to use (index.html) | ||
− | ; [[Conf/Parameters/Pageroot | + | ; [[Conf/Parameters/Pageroot | pageroot]] |
:Directory under which all pages live | :Directory under which all pages live | ||
'''Tuning options''' | '''Tuning options''' | ||
− | ; [[Conf/Parameters/Connsperthread | + | ; [[Conf/Parameters/Connsperthread | connsperthread]] |
:Normally there's one conn per thread | :Normally there's one conn per thread | ||
− | ; [[Conf/Parameters/Maxthreads | + | ; [[Conf/Parameters/Maxthreads|maxthreads]] |
:Tune this to scale your server | :Tune this to scale your server | ||
− | ; [[Conf/Parameters/Minthreads | + | ; [[Conf/Parameters/Minthreads|minthreads]] |
:Tune this to scale your server | :Tune this to scale your server | ||
− | ; [[Conf/Parameters/Threadtimeout | + | ; [[Conf/Parameters/Threadtimeout|threadtimeout]] |
:Idle timeout for connection threads | :Idle timeout for connection threads | ||
− | ; [[Conf/Parameters/Maxconnections | + | ; [[Conf/Parameters/Maxconnections|maxconnections]] |
:Max connections per connection thread before it is shut down | :Max connections per connection thread before it is shut down | ||
− | ; [[Conf/Parameters/Spread | + | ; [[Conf/Parameters/Spread|spread]] |
: 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''' | '''Limits''' | ||
− | ; [[Conf/Parameters/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''' | '''Directory listings can be generated with an ADP or a Tcl proc''' | ||
− | ; [[Conf/Parameters/Directoryadp | + | ; [[Conf/Parameters/Directoryadp|directoryadp]] |
:Choose one or the other | :Choose one or the other | ||
− | ; [[Conf/Parameters/Directoryproc | + | ; [[Conf/Parameters/Directoryproc|directoryproc]] |
: ...but not both! | : ...but not both! | ||
− | ; [[Conf/Parameters/Directorylisting | + | ; [[Conf/Parameters/Directorylisting|directorylisting]] |
:Can be simple or fancy (for ns_dirlist) | :Can be simple or fancy (for ns_dirlist) | ||
'''Miscellaneous''' | '''Miscellaneous''' | ||
− | ; [[Conf/Parameters/Checkmodifiedsince | + | ; [[Conf/Parameters/Checkmodifiedsince|checkmodifiedsince]] |
:Check url if no If-Modified-Since? | :Check url if no If-Modified-Since? | ||
− | ; [[Conf/Parameters/Enableaolpress | + | ; [[Conf/Parameters/Enableaolpress|enableaolpress]] |
:Enable extra features used by AOLpress | :Enable extra features used by AOLpress | ||
− | ; [[Conf/Parameters/Headercase | + | ; [[Conf/Parameters/Headercase|headercase]] |
:tolower, toupper, preserve | :tolower, toupper, preserve | ||
'''Internal redirects''' | '''Internal redirects''' | ||
− | ; [[Conf/Parameters/404 | + | ; [[Conf/Parameters/404|404]] |
:Not Found error page | :Not Found error page | ||
− | ; [[Conf/Parameters/500 | + | ; [[Conf/Parameters/500|500]] |
:Server Error page | :Server Error page | ||
− | + | '''Fastpath serves HTML''' | |
− | + | ||
− | + | ; [[Conf/Parameters/Cache|cache]] | |
− | + | : Enable cache for normal URLs; default: false | |
− | + | ||
− | + | ; [[Conf/Parameters/Cachemaxentry|cachemaxentry]] | |
− | + | : Largest file size allowable in cache; default | |
− | + | ||
− | + | ; [[Conf/Parameters/Mmap|mmap]] | |
− | + | : Use mmap() for cache; default: false | |
− | + | ||
− | + | ; [[Conf/Parameters/Directoryfile|directoryfile]] | |
− | + | :String. Directory index/default page to look for. | |
− | + | :Optional, default is directoryfile parameter set in | |
− | + | :ns/server/${servername} section. | |
− | + | ||
− | + | ; [[Conf/Parameters/Directorylisting|directorylisting]] | |
− | + | :Directory listing style. Optional, can be "fancy" or "simple". | |
− | + | ||
− | + | ; [[Conf/Parameters/Directoryproc|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. | |
− | + | ||
− | + | ; [[Conf/Parameters/Directoryadp|directoryadp]] | |
− | + | :String. Name of ADP page to use to display directory | |
− | + | :listings. Optional. You can either specify | |
− | + | ||
− | + | '''Tcl interpreter''' | |
− | + | ; [[Conf/Parameters/Debug|debug]] | |
− | + | :Names of files sourced is logged | |
+ | ; [[Conf/Parameters/Nsvbuckets|nsvbuckets]] | ||
+ | :No. of buckets to hold nsv's | ||
+ | ; [[Conf/Parameters/Library |library ]] | ||
+ | :Private tcl library for the server |
Revision as of 10:07, 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