Difference between revisions of "Conf/Servers"

From AOLserver Wiki
Jump to navigation Jump to search
 
(One intermediate revision by the same user 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
 
 
 
 
 
'''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 (fastpath)|directoryfile (fastpath)]]
 
:String. Directory index/default page to look for.
 
:Optional, default is directoryfile parameter set in
 
:ns/server/${servername} section.
 
 
 
; [[Conf/Parameters/Directorylisting (fastpath)|directorylisting (fastpath)]]
 
:Directory listing style. Optional, can be "fancy" or "simple".
 
 
 
; [[Conf/Parameters/Directoryproc (fastpath)|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.
 
 
 
; [[Conf/Parameters/Directoryadp (fastpath)|directoryadp (fastpath)]]
 
: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
 

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"