Difference between revisions of "Conf/Servers"

From AOLserver Wiki
Jump to navigation Jump to search
Line 74: Line 74:
 
: Use mmap() for cache; default: false
 
: Use mmap() for cache; default: false
  
; [[Conf/Parameters/Directoryfile|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|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|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|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  

Revision as of 10:43, 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