Difference between revisions of "Conf/Servers"

From AOLserver Wiki
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||directoryfile]]
+
; [[Conf/Parameters/Directoryfile | directoryfile]]
 
:List of files to use (index.html)
 
:List of files to use (index.html)
  
; [[Conf/Parameters/Pageroot||pageroot]]
+
; [[Conf/Parameters/Pageroot | pageroot]]
 
:Directory under which all pages live
 
:Directory under which all pages live
  
 
  '''Tuning options'''
 
  '''Tuning options'''
; [[Conf/Parameters/Connsperthread||connsperthread]]
+
; [[Conf/Parameters/Connsperthread | connsperthread]]
 
:Normally there's one conn per thread
 
:Normally there's one conn per thread
  
; [[Conf/Parameters/Maxthreads||maxthreads]]
+
; [[Conf/Parameters/Maxthreads|maxthreads]]
 
:Tune this to scale your server
 
:Tune this to scale your server
  
; [[Conf/Parameters/Minthreads||minthreads]]
+
; [[Conf/Parameters/Minthreads|minthreads]]
 
:Tune this to scale your server
 
:Tune this to scale your server
  
; [[Conf/Parameters/Threadtimeout||threadtimeout]]
+
; [[Conf/Parameters/Threadtimeout|threadtimeout]]
 
:Idle timeout for connection threads
 
:Idle timeout for connection threads
  
; [[Conf/Parameters/Maxconnections||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||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||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||directoryadp]]
+
; [[Conf/Parameters/Directoryadp|directoryadp]]
 
:Choose one or the other
 
:Choose one or the other
  
; [[Conf/Parameters/Directoryproc||directoryproc]]
+
; [[Conf/Parameters/Directoryproc|directoryproc]]
 
: ...but not both!
 
: ...but not both!
  
; [[Conf/Parameters/Directorylisting||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||checkmodifiedsince]]
+
; [[Conf/Parameters/Checkmodifiedsince|checkmodifiedsince]]
 
:Check url if no If-Modified-Since?
 
:Check url if no If-Modified-Since?
; [[Conf/Parameters/Enableaolpress||enableaolpress]]
+
; [[Conf/Parameters/Enableaolpress|enableaolpress]]
 
:Enable extra features used by AOLpress
 
:Enable extra features used by AOLpress
; [[Conf/Parameters/Headercase||headercase]]
+
; [[Conf/Parameters/Headercase|headercase]]
 
:tolower, toupper, preserve
 
:tolower, toupper, preserve
 
      
 
      
 
   '''Internal redirects'''   
 
   '''Internal redirects'''   
  
; [[Conf/Parameters/404||404]]
+
; [[Conf/Parameters/404|404]]
 
:Not Found error page
 
:Not Found error page
  
; [[Conf/Parameters/500||500]]
+
; [[Conf/Parameters/500|500]]
 
:Server Error page
 
:Server Error page
  
  
  '''Internal redirects'''
+
'''Fastpath serves HTML'''  
   
+
 
    #
+
; [[Conf/Parameters/Cache|cache]]
    # Fastpath serves HTML
+
: Enable cache for normal URLs; default: false
    #
+
 
    ns_section "ns/server/${servername}/fastpath"
+
; [[Conf/Parameters/Cachemaxentry|cachemaxentry]]
    ns_param  cache          true      ;# Enable cache for normal URLs; default: false
+
: Largest file size allowable in cache; default
    ns_param  cachemaxentry   8192      ;# Largest file size allowable in cache; default: cachemaxsize/10
+
 
    ns_param  cachemaxsize    [expr 5000*1024] ;# Size of fastpath cache; default: 5120000
+
; [[Conf/Parameters/Mmap|mmap]]
    ns_param  mmap            false    ;# Use mmap() for cache; default: false
+
: Use mmap() for cache; default: false
    ns_param  directoryfile   index.adp,index.tcl,index.html,index.htm
+
 
                                        ;# String. Directory index/default page to look for.  
+
; [[Conf/Parameters/Directoryfile|directoryfile]]
                                        ;# Optional, default is directoryfile parameter set in  
+
:String. Directory index/default page to look for.  
                                        ;# ns/server/${servername} section.
+
:Optional, default is directoryfile parameter set in  
    ns_param  directorylisting fancy    ;# Directory listing style.  
+
:ns/server/${servername} section.
                                        ;# Optional, can be "fancy" or "simple".  
+
 
    ns_param  directoryproc _ns_dirlist ;# String. Name of Tcl proc to use to display
+
; [[Conf/Parameters/Directorylisting|directorylisting]]
                                        ;# directory listings. Optional, default is to use
+
:Directory listing style. Optional, can be "fancy" or "simple".  
                                        ;# _ns_dirlist. You can either specify directoryproc,
+
 
                                        ;# or directoryadp - not both.
+
; [[Conf/Parameters/Directoryproc|directoryproc]]
    ;#ns_param directoryadp dir.adp      ;# String. Name of ADP page to use to display directory  
+
:String. Name of Tcl proc to use to display
                                        ;# listings. Optional. You can either specify directoryadp
+
:directory listings. Optional, default is to use
                                        ;# or directoryproc - not both.
+
:_ns_dirlist. You can either specify directoryproc, or directoryadp - not both.
   
+
 
    #
+
; [[Conf/Parameters/Directoryadp|directoryadp]]
    # Tcl interpreter
+
:String. Name of ADP page to use to display directory  
    #
+
:listings. Optional. You can either specify  
    ns_section "ns/server/${servername}/tcl"
+
 
    ns_param  debug          false    ;# Names of files sourced is logged
+
'''Tcl interpreter'''
    ns_param  nsvbuckets     8        ;# No. of buckets to hold nsv's
+
; [[Conf/Parameters/Debug|debug]]
    ns_param  library  "$home/servers/${servername}/modules/tcl" ;# Private tcl library for the server
+
: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