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 …')
 
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
== ns_section "ns/servers" ==
 
== ns_section "ns/servers" ==
   
+
part of [[Conf|AOLServer Config Reference]]
; [[Conf/Parameters/$server|$server]]
 
:  Name of virtual server.
 
  
 +
List all the virtual servers that are served by this instance.
  
'''Server parameters'''
+
''Normally there is only one virtual server if used as an application server.''
; [[Conf/Parameters/Directoryfile||directoryfile]]
 
:List of files to use (index.html)
 
  
; [[Conf/Parameters/Pageroot||pageroot]]
+
Each param line defines a server_name server_description pair
:Directory under which all pages live
 
  
  '''Tuning options'''
+
  ns_section "ns/servers"
; [[Conf/Parameters/Connsperthread||connsperthread]]
+
     ns_param  server1  "Website 1"
:Normally there's one conn per thread
+
     ns_param  server2  "Website 2"
 
+
     ns_param  server3 "Website 3"
; [[Conf/Parameters/Maxthreads||maxthreads]]
 
:Tune this to scale your server
 
 
 
; [[Conf/Parameters/Minthreads||minthreads]]
 
:Tune this to scale your server
 
 
 
; [[Conf/Parameters/Threadtimeout||threadtimeout]]
 
:Idle timeout for connection threads
 
 
 
; [[Conf/Parameters/Maxconnections||maxconnections]]
 
:Max connections per connection thread before it is shut down
 
 
 
; [[Conf/Parameters/Spread||spread]]
 
: Variance factor for threadtimeout and maxconnections to prevent mass mortality of theads (e.g. +-20%)
 
 
 
'''Limits'''
 
; [[Conf/Parameters/Maxline||maxline]]
 
:Max line length from client
 
 
 
'''Directory listings can be generated with an ADP or a Tcl proc'''
 
; [[Conf/Parameters/Directoryadp||directoryadp]]
 
:Choose one or the other
 
 
 
; [[Conf/Parameters/Directoryproc||directoryproc]]
 
: ...but not both!
 
 
 
; [[Conf/Parameters/Directorylisting||directorylisting]]
 
:Can be simple or fancy (for ns_dirlist)
 
 
 
'''Miscellaneous'''
 
 
 
; [[Conf/Parameters/Checkmodifiedsince||checkmodifiedsince]]
 
:Check url if no If-Modified-Since?
 
; [[Conf/Parameters/Enableaolpress||enableaolpress]]
 
:Enable extra features used by AOLpress
 
; [[Conf/Parameters/Headercase||headercase]]
 
:tolower, toupper, preserve
 
   
 
  '''Internal redirects''' 
 
 
 
; [[Conf/Parameters/404||404]]
 
:Not Found error page
 
 
 
; [[Conf/Parameters/500||500]]
 
:Server Error page
 
 
 
 
 
  '''Internal redirects''' 
 
   
 
    #
 
    # Fastpath serves HTML
 
    #
 
    ns_section "ns/server/${servername}/fastpath"
 
     ns_param  cache          true      ;# Enable cache for normal URLs; default: false
 
    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
 
    ns_param  mmap            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.
 
                                        ;# Optional, default is directoryfile parameter set in
 
                                        ;# ns/server/${servername} section.
 
    ns_param  directorylisting fancy    ;# Directory listing style.
 
                                        ;# Optional, can be "fancy" or "simple".
 
     ns_param  directoryproc _ns_dirlist ;# 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.
 
    ;#ns_param directoryadp dir.adp      ;# String. Name of ADP page to use to display directory
 
                                        ;# listings. Optional. You can either specify directoryadp
 
                                        ;# or directoryproc - not both.
 
   
 
    #
 
    # Tcl interpreter
 
    #
 
    ns_section "ns/server/${servername}/tcl"
 
     ns_param  debug          false    ;# Names of files sourced is logged
 
    ns_param  nsvbuckets      8        ;# No. of buckets to hold nsv's
 
    ns_param  library "$home/servers/${servername}/modules/tcl" ;# Private tcl library for the server
 

Latest revision as of 09:35, 9 July 2012

ns_section "ns/servers"

part of AOLServer Config Reference

List all the virtual servers that are served by this instance.

Normally there is only one virtual server if used as an application server.

Each param line defines a server_name server_description pair

ns_section "ns/servers"
   ns_param   server1  "Website 1"
   ns_param   server2  "Website 2"
   ns_param   server3  "Website 3"