<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://panoptic.com/mediawiki/aolserver/index.php?action=history&amp;feed=atom&amp;title=Conf%2FExamples%2FFull</id>
	<title>Conf/Examples/Full - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://panoptic.com/mediawiki/aolserver/index.php?action=history&amp;feed=atom&amp;title=Conf%2FExamples%2FFull"/>
	<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/Full&amp;action=history"/>
	<updated>2026-04-25T17:38:56Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/Full&amp;diff=6530&amp;oldid=prev</id>
		<title>Visitatvishal: Created page with '= Full Configuration =   part of AOLserver Config Examples    #    #    AOLServer 4 configuration file.   #   #    Copyright (C) 2003-2009 Francesco P. Lovergi…'</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/Full&amp;diff=6530&amp;oldid=prev"/>
		<updated>2011-12-26T10:08:17Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;= Full Configuration =  &lt;a href=&quot;/wiki/aolserver/Conf/Examples&quot; title=&quot;Conf/Examples&quot;&gt; part of AOLserver Config Examples&lt;/a&gt;    #    #    AOLServer 4 configuration file.   #   #    Copyright (C) 2003-2009 Francesco P. Lovergi…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Full Configuration = &lt;br /&gt;
[[Conf/Examples | part of AOLserver Config Examples]]&lt;br /&gt;
&lt;br /&gt;
  # &lt;br /&gt;
  #    AOLServer 4 configuration file.&lt;br /&gt;
  #&lt;br /&gt;
  #    Copyright (C) 2003-2009 Francesco P. Lovergine &amp;lt;frankie@debian.org&amp;gt;&lt;br /&gt;
  #&lt;br /&gt;
  #    This program is free software; you can redistribute it and/or modify&lt;br /&gt;
  #    it under the terms of the GNU General Public License as published by&lt;br /&gt;
  #    the Free Software Foundation; either version 2 of the License, or&lt;br /&gt;
  #    (at your option) any later version.&lt;br /&gt;
  #&lt;br /&gt;
  #    This program is distributed in the hope that it will be useful,&lt;br /&gt;
  #    but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br /&gt;
  #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the&lt;br /&gt;
  #    GNU General Public License for more details.&lt;br /&gt;
  #&lt;br /&gt;
  #    You should have received a copy of the GNU General Public License&lt;br /&gt;
  #    along with this program; if not, write to the Free Software&lt;br /&gt;
  #    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA&lt;br /&gt;
  #&lt;br /&gt;
  #    On Debian GNU/Linux systems a copy of the license is available&lt;br /&gt;
  #    as /usr/share/common-licenses/GPL.&lt;br /&gt;
  #&lt;br /&gt;
&lt;br /&gt;
  #&lt;br /&gt;
  #    AOLServer can run multiple domains on a single machine. &lt;br /&gt;
  #&lt;br /&gt;
  #    You can add more ns/server/domain sections and use the -s domain&lt;br /&gt;
  #    command line option to use the same configuration file in multi-configuration&lt;br /&gt;
  #    flavor. You could also use more configuration files and run multiple&lt;br /&gt;
  #    instances of the daemon, alternatively.&lt;br /&gt;
  #&lt;br /&gt;
  #    This file use a single 'main' domain per default.&lt;br /&gt;
  #&lt;br /&gt;
&lt;br /&gt;
  array set debian_config {&lt;br /&gt;
    HOSTNAME localhost&lt;br /&gt;
    #ADDRESS 0.0.0.0&lt;br /&gt;
    ADDRESS 127.0.0.1&lt;br /&gt;
    HTTP_PORT 8000&lt;br /&gt;
    HTTPS_PORT 443&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
  proc parse_shell_snippet {filename} {&lt;br /&gt;
    global debian_config&lt;br /&gt;
    set fd [open $filename r]&lt;br /&gt;
    set line_no 1&lt;br /&gt;
    while {![eof $fd]} {&lt;br /&gt;
        set line [string trim [gets $fd] &amp;quot; &amp;quot;]&lt;br /&gt;
        if {$line == &amp;quot;&amp;quot;} continue&lt;br /&gt;
        switch -regexp -- $line {&lt;br /&gt;
            ^#.* { }&lt;br /&gt;
            .*=.* {&lt;br /&gt;
                set pair [split $line =]&lt;br /&gt;
                set name [string trim [lindex $pair 0] &amp;quot; &amp;quot;]&lt;br /&gt;
                set value [string trim [lindex $pair 1] &amp;quot; &amp;quot;]&lt;br /&gt;
                set debian_config($name) $value&lt;br /&gt;
            }&lt;br /&gt;
           default {&lt;br /&gt;
                error &amp;quot;Error parsing $filename (line: $line_no): $line&amp;quot;&lt;br /&gt;
           }&lt;br /&gt;
        }&lt;br /&gt;
        incr line_no&lt;br /&gt;
    }&lt;br /&gt;
    close $fd&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
  #&lt;br /&gt;
  # Parse default vars snippet file&lt;br /&gt;
  #&lt;br /&gt;
  parse_shell_snippet /etc/default/aolserver4&lt;br /&gt;
&lt;br /&gt;
  #############################################################################################&lt;br /&gt;
  #&lt;br /&gt;
  #    GLOBAL VARIABLES&lt;br /&gt;
  #&lt;br /&gt;
&lt;br /&gt;
  set httpport    $debian_config(HTTP_PORT)&lt;br /&gt;
  set httpsport   $debian_config(HTTPS_PORT)&lt;br /&gt;
  set controlport 9999&lt;br /&gt;
&lt;br /&gt;
  set hostname $debian_config(HOSTNAME)&lt;br /&gt;
  set address  $debian_config(ADDRESS)&lt;br /&gt;
&lt;br /&gt;
  set servername main&lt;br /&gt;
  set serverdesc &amp;quot;AOLServer Site&amp;quot;&lt;br /&gt;
  set package    aolserver4&lt;br /&gt;
&lt;br /&gt;
  set pageroot      /var/www&lt;br /&gt;
  set directoryfile index.adp,index.html,index.htm&lt;br /&gt;
&lt;br /&gt;
  set homedir /usr/lib/${package}&lt;br /&gt;
  set bindir  ${homedir}/bin&lt;br /&gt;
&lt;br /&gt;
  set sslmodule    nsssl.so&lt;br /&gt;
  set sslkeyfile   ${homedir}/servers/${servername}/modules/nsssl/keyfile.pem&lt;br /&gt;
  set sslcertfile  ${homedir}/servers/${servername}/modules/nsssl/certfile.pem&lt;br /&gt;
&lt;br /&gt;
  set serverlog       /var/log/${package}/${package}.log&lt;br /&gt;
  set pidfile         /var/run/${package}/${package}.pid&lt;br /&gt;
&lt;br /&gt;
  ##############################################################################################&lt;br /&gt;
  #&lt;br /&gt;
  #    GLOBAL SERVER PARAMETERS&lt;br /&gt;
  #&lt;br /&gt;
  #&lt;br /&gt;
  ns_section &amp;quot;ns/parameters&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  ns_param home ${homedir}&lt;br /&gt;
  ns_param debug false&lt;br /&gt;
  ns_param servername ${servername}&lt;br /&gt;
&lt;br /&gt;
  ns_param user  www-data&lt;br /&gt;
  ns_param group www-data&lt;br /&gt;
&lt;br /&gt;
  # Data structures&lt;br /&gt;
  ns_param   dstringcachemaxentries 10        ;# Max no. of Dstrings to put on cache&lt;br /&gt;
  ns_param   dstringcachemaxsize    [expr 3*1024]&lt;br /&gt;
  ns_param   iobufsize              16000     ;# Buffer size suitable for I/O&lt;br /&gt;
&lt;br /&gt;
  # Limits&lt;br /&gt;
  ns_param   keepalivetimeout 30       ;# Max time conn is kept alive (keepalive)&lt;br /&gt;
                                     ;#   (set to 0 to disable keepalive)&lt;br /&gt;
  ns_param   listenbacklog   32        ;# Max length of pending conn queue&lt;br /&gt;
  ns_param   maxkeepalive    100       ;# Max no. of conns in keepalive state&lt;br /&gt;
  ns_param   schedmaxelapsed 2         ;# Warn when waiting on really long procs&lt;br /&gt;
  ns_param   shutdowntimeout 20        ;# Secs to wait on shutdown if open conns&lt;br /&gt;
&lt;br /&gt;
  # Server logging&lt;br /&gt;
  ns_param dev             true      ;# Display logging with &amp;quot;Dev&amp;quot; severity&lt;br /&gt;
  ns_param debug           false     ;# Display logging with &amp;quot;Debug&amp;quot; severity&lt;br /&gt;
  ns_param logexpanded     false     ;# true = double-spaced server.log&lt;br /&gt;
  ns_param logroll         false     ;# Roll server.log every 24 hours.&lt;br /&gt;
  ns_param maxbackup       10        ;# Max number of old server.log files&lt;br /&gt;
&lt;br /&gt;
  ns_param serverlog       ${serverlog}	;# Logging file name&lt;br /&gt;
  ns_param pidfile         ${pidfile}	;# pid of server file name&lt;br /&gt;
&lt;br /&gt;
  # DNS tuning&lt;br /&gt;
  ns_param   dnscache        true      ;# In-memory cache of DNS lookups&lt;br /&gt;
  ns_param   dnscachetimeout 60        ;# How long to keep hostnames in cache&lt;br /&gt;
&lt;br /&gt;
  # Miscellaneous&lt;br /&gt;
  ns_param   checkexitcode   false     ;# Check exit code on forked process&lt;br /&gt;
  ns_param   crashcmd        ns_crash  ;# A Tcl command that dumps core.&lt;br /&gt;
  ns_param   mailhost        localhost ;# SMTP host for ns_sendmail&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  ##############################################################################################&lt;br /&gt;
  #&lt;br /&gt;
  #    MODULE CONFIGURATIONS&lt;br /&gt;
  #&lt;br /&gt;
  #&lt;br /&gt;
&lt;br /&gt;
  #&lt;br /&gt;
  # Thread library (nsthread) parameters&lt;br /&gt;
  #&lt;br /&gt;
  ns_section &amp;quot;ns/threads&amp;quot;&lt;br /&gt;
  ns_param   mutexmeter      true      ;# measure lock contention&lt;br /&gt;
  ns_param   stacksize       [expr 128*1024]  ;# stack size per thread (in bytes)&lt;br /&gt;
&lt;br /&gt;
  #&lt;br /&gt;
  # MIME types.&lt;br /&gt;
  #&lt;br /&gt;
  # Note: AOLserver already has an exhaustive list of MIME types, but in&lt;br /&gt;
  # case something is missing you can add it here.&lt;br /&gt;
  #&lt;br /&gt;
  ns_section &amp;quot;ns/mimetypes&amp;quot;&lt;br /&gt;
  ns_param   default         &amp;quot;*/*&amp;quot;     ;# MIME type for unknown extension&lt;br /&gt;
  ns_param   noextension     &amp;quot;*/*&amp;quot;     ;# MIME type for missing extension&lt;br /&gt;
  #ns_param   &amp;quot;.xls&amp;quot;          &amp;quot;application/vnd.ms-excel&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  #&lt;br /&gt;
  #   I18N Mime-types; define content-type header values&lt;br /&gt;
  #                    to be mapped from these file-types.&lt;br /&gt;
  #                    Note that you can map file-types of adp files to control&lt;br /&gt;
  #                    the output encoding through mime-type specificaion.&lt;br /&gt;
  #                    Remember to add an adp mapping for that extension.&lt;br /&gt;
  #&lt;br /&gt;
  ns_param   .adp            &amp;quot;text/html; charset=iso-8859-1&amp;quot;&lt;br /&gt;
  ns_param   .u_adp          &amp;quot;text/html; charset=UTF-8&amp;quot;&lt;br /&gt;
  ns_param   .gb_adp         &amp;quot;text/html; charset=GB2312&amp;quot;&lt;br /&gt;
  ns_param   .sjis_html      &amp;quot;text/html; charset=shift_jis&amp;quot;&lt;br /&gt;
  ns_param   .sjis_adp       &amp;quot;text/html; charset=shift_jis&amp;quot;&lt;br /&gt;
  ns_param   .gb_html        &amp;quot;text/html; charset=GB2312&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  #&lt;br /&gt;
  #   I18N File-type to Encoding mappings&lt;br /&gt;
  #&lt;br /&gt;
  ns_section &amp;quot;ns/encodings&amp;quot;&lt;br /&gt;
  ns_param   .utf_html       &amp;quot;utf-8&amp;quot;&lt;br /&gt;
  ns_param   .sjis_html      &amp;quot;shiftjis&amp;quot;&lt;br /&gt;
  ns_param   .gb_html        &amp;quot;gb2312&amp;quot;&lt;br /&gt;
  ns_param   .big5_html      &amp;quot;big5&amp;quot;&lt;br /&gt;
  ns_param   .euc-cn_html    &amp;quot;euc-cn&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  #&lt;br /&gt;
  # Note: you will need to include file-type to encoding mappings&lt;br /&gt;
  #       for ANY source files that are to be used, to allow the&lt;br /&gt;
  #       server to handle them properly.  E.g., the following&lt;br /&gt;
  #       asserts that the GB-producing .adp files are themselves&lt;br /&gt;
  #       encoded in GB2312 (this is not simply assumed).&lt;br /&gt;
  #&lt;br /&gt;
  ns_param   .gb_adp         &amp;quot;gb2312&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  #&lt;br /&gt;
  # Thread library (nsthread) parameters&lt;br /&gt;
  #&lt;br /&gt;
  ns_section &amp;quot;ns/threads&amp;quot;&lt;br /&gt;
  ns_param mutexmeter      true           ;# measure lock contention&lt;br /&gt;
  ns_param stacksize       [expr 128*1024]  ;# stack size per thread (in bytes)&lt;br /&gt;
                                                                                                                           &lt;br /&gt;
&lt;br /&gt;
  ##########################################################################################&lt;br /&gt;
  #&lt;br /&gt;
  #  SERVER LEVEL CONFIGURATION&lt;br /&gt;
  #&lt;br /&gt;
  #  There is only one server in AOLserver, but this is helpful when multiple&lt;br /&gt;
  #  servers share the same configuration file.  This file assumes that only&lt;br /&gt;
  #  one server is in use so it is set at the top.&lt;br /&gt;
  #&lt;br /&gt;
&lt;br /&gt;
  ns_section &amp;quot;ns/servers&amp;quot;&lt;br /&gt;
  ns_param   $servername         $serverdesc ;# Name of virtual server.&lt;br /&gt;
&lt;br /&gt;
  #&lt;br /&gt;
  # Server parameters&lt;br /&gt;
  #&lt;br /&gt;
  ns_section &amp;quot;ns/server/${servername}&amp;quot;&lt;br /&gt;
  ns_param   directoryfile   $directoryfile ;# List of files to use (index.html)&lt;br /&gt;
  ns_param   pageroot        $pageroot ;# Directory under which all pages live&lt;br /&gt;
&lt;br /&gt;
  # Tuning options&lt;br /&gt;
  ns_param   connsperthread  0         ;# Normally there's one conn per thread&lt;br /&gt;
  ns_param   flushcontent    false     ;# Flush all data before returning&lt;br /&gt;
  ns_param   maxconnections  100       ;# Max connections to put on queue&lt;br /&gt;
  ns_param   maxdropped      0         ;# Shut down if dropping too many conns&lt;br /&gt;
  ns_param   maxthreads      20        ;# Tune this to scale your server&lt;br /&gt;
  ns_param   minthreads      0         ;# Tune this to scale your server&lt;br /&gt;
  ns_param   threadtimeout   120       ;# Idle threads die at this rate&lt;br /&gt;
&lt;br /&gt;
  # Limits&lt;br /&gt;
  ns_param   maxheaders      16384     ;# Max no. of headers from client&lt;br /&gt;
  ns_param   maxline         8192      ;# Max line length from client&lt;br /&gt;
  ns_param   maxpost         65536     ;# Max bytes on a POST&lt;br /&gt;
  ns_param   sendfdthreshold 2048      ;# Min size of file descriptor to send&lt;br /&gt;
&lt;br /&gt;
  # Performance statistics gathering&lt;br /&gt;
  ns_param   globalstats     true      ;# Enable built-in statistics&lt;br /&gt;
  ns_param   urlstats        true      ;# Enable URL statistics&lt;br /&gt;
  ns_param   maxurlstats     1000      ;# Max number of URL's to do stats on&lt;br /&gt;
&lt;br /&gt;
  # Directory listings can be generated with an ADP or a Tcl proc.&lt;br /&gt;
  ns_param   directoryadp    $homedir/dirlist.adp  ;# Choose one or the other&lt;br /&gt;
  ns_param   directoryproc   _ns_dirlist        ;#  ...but not both!&lt;br /&gt;
  ns_param   directorylisting simple   ;# Can be simple or fancy (for ns_dirlist)&lt;br /&gt;
&lt;br /&gt;
  # Miscellaneous&lt;br /&gt;
  ns_param   checkmodifiedsince true   ;# Check url if no If-Modified-Since?&lt;br /&gt;
  ns_param   enableaolpress  false     ;# Enable extra features used by AOLpress&lt;br /&gt;
  ns_param   headercase      preserve  ;# tolower, toupper, preserve&lt;br /&gt;
&lt;br /&gt;
  #&lt;br /&gt;
  # Internal redirects&lt;br /&gt;
  #&lt;br /&gt;
  #ns_section &amp;quot;ns/server/${servername}/redirects&amp;quot;&lt;br /&gt;
  #ns_param   404 &amp;quot;/notfound.html&amp;quot;      ;# Not Found error page&lt;br /&gt;
  #ns_param   500 &amp;quot;/servererror.html&amp;quot;   ;# Server Error page&lt;br /&gt;
&lt;br /&gt;
  #&lt;br /&gt;
  # Fastpath serves HTML&lt;br /&gt;
  #&lt;br /&gt;
  #     Fast path configuration is used to configure options used for serving&lt;br /&gt;
  #     static content, and also provides options to automatically display&lt;br /&gt;
  #     directory listings.&lt;br /&gt;
  #&lt;br /&gt;
  # Parameters:&lt;br /&gt;
  #&lt;br /&gt;
  #     cache               Boolean. Enable cache for normal URLs.&lt;br /&gt;
  #                         Optional, default is false.&lt;br /&gt;
  #     cachemaxsize        Integer. Size of fast path cache.&lt;br /&gt;
  #                         Optional, default is 5120000.&lt;br /&gt;
  #     cachemaxentry       Integer. Largest file size allowed in cache.&lt;br /&gt;
  #                         Optional, default is cachemaxsize / 10.&lt;br /&gt;
  #     mmap                Boolean. Use mmap() for cache.&lt;br /&gt;
  #                         Optional, default is false.&lt;br /&gt;
  #     directoryfile       String. Directory index/default page to&lt;br /&gt;
  #                         look for. Optional, default is directoryfile&lt;br /&gt;
  #                         parameter set in ns/server/${servername} section.&lt;br /&gt;
  #     directorylisting    String. Directory listing style. Optional,&lt;br /&gt;
  #                         Can be &amp;quot;fancy&amp;quot; or &amp;quot;simple&amp;quot;.&lt;br /&gt;
  #     directoryproc       String. Name of Tcl proc to use to display&lt;br /&gt;
  #                         directory listings. Optional, default is to use&lt;br /&gt;
  #                         _ns_dirlist. You can either specify directoryproc,&lt;br /&gt;
  #                         or directoryadp - not both.&lt;br /&gt;
  #     directoryadp        String. Name of ADP page to use to display&lt;br /&gt;
  #                         directory listings. Optional. You can either&lt;br /&gt;
  #                         specify directoryadp or directoryproc - not both.&lt;br /&gt;
  #&lt;br /&gt;
  #&lt;br /&gt;
  #    ns_section &amp;quot;ns/server/${servername}/fastpath&amp;quot;&lt;br /&gt;
  #        ns_param directorylisting fancy&lt;br /&gt;
  #&lt;br /&gt;
&lt;br /&gt;
  ns_section &amp;quot;ns/server/${servername}/fastpath&amp;quot;&lt;br /&gt;
  ns_param   cache           true      ;# Enable cache for normal URLs&lt;br /&gt;
  ns_param   cachemaxentry   8192      ;# Largest file size allowable in cache&lt;br /&gt;
  ns_param   cachemaxsize    [expr 5000*1024] ;# Size of fastpath cache&lt;br /&gt;
  ns_param   mmap            false     ;# Use mmap() for cache&lt;br /&gt;
&lt;br /&gt;
  #&lt;br /&gt;
  # Tcl interpreter&lt;br /&gt;
  #&lt;br /&gt;
  ns_section &amp;quot;ns/server/${servername}/tcl&amp;quot;&lt;br /&gt;
  ns_param   autoclose       true      ;# Close files the Tcl interp opened&lt;br /&gt;
  ns_param   debug           false     ;# Names of files sourced is logged&lt;br /&gt;
  ns_param   nsvbuckets      8         ;# No. of buckets to hold nsv's&lt;br /&gt;
  ns_param   statlevel       0         ;# How many levels deep to run tclstats&lt;br /&gt;
  ns_param   statmaxbuf      100       ;# Maximum entries in tclstats table&lt;br /&gt;
  ns_param   library 	$homedir/servers/${servername}/modules/tcl ;# Private tcl library for the server&lt;br /&gt;
&lt;br /&gt;
  #&lt;br /&gt;
  # ADP (AOLserver Dynamic Page) configuration&lt;br /&gt;
  #&lt;br /&gt;
  ns_section &amp;quot;ns/server/${servername}/adp&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  # ADP features&lt;br /&gt;
  ns_param   map             &amp;quot;/*.adp&amp;quot;  ;# Extensions to parse as ADP's&lt;br /&gt;
  ns_param   map             &amp;quot;/*.html&amp;quot; ;# Any extension can be mapped&lt;br /&gt;
  ns_param   enableexpire    true      ;# Set &amp;quot;Expires: now&amp;quot; on all ADP's&lt;br /&gt;
  ns_param   enabledebug     true      ;# Turn on Tclpro debugging with &amp;quot;?debug&amp;quot;&lt;br /&gt;
  ns_param   debuginit &amp;quot;ns_adp_debuginit&amp;quot; ;# Debug procedure&lt;br /&gt;
&lt;br /&gt;
  # ADP tuning&lt;br /&gt;
  ns_param   cache           true      ;# In-memory cache of ADP's&lt;br /&gt;
  ns_param   cachesize       [expr 5000*1024]&lt;br /&gt;
  ns_param   taglocks        false     ;# Enable post-ini creation of ADP tags&lt;br /&gt;
  ns_param   threadcache     false     ;# default for Tcl 7.6 (nsd76)&lt;br /&gt;
  ns_param   threadcache     true      ;# default for Tcl 8.2 (nsd82)&lt;br /&gt;
&lt;br /&gt;
  # ADP special pages&lt;br /&gt;
  #ns_param   errorpage #	${pageroot}/errorpage.adp        ;# Pretty-print ADP errors with an ADP&lt;br /&gt;
  #ns_param   startpage #	${pageroot}/startpage.inc        ;# Page to include for all ADP's&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  #&lt;br /&gt;
  # ADP custom parsers -- see adp.c&lt;br /&gt;
  #&lt;br /&gt;
  ns_section &amp;quot;ns/server/${servername}/adp/parsers&amp;quot;&lt;br /&gt;
  ns_param   adp             &amp;quot;.adp&amp;quot;   ;# The simple parser looks for &amp;lt;\% ... \%&amp;gt;&lt;br /&gt;
  ns_param   fancy           &amp;quot;.adp&amp;quot;   ;# The fancy parser does a lot more.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  #&lt;br /&gt;
  # Socket driver module (HTTP)  -- nssock&lt;br /&gt;
  #&lt;br /&gt;
  ns_section &amp;quot;ns/server/${servername}/module/nssock&amp;quot;&lt;br /&gt;
  ns_param   port            $httpport ;# Port for HTTP (typically 80)&lt;br /&gt;
  ns_param   hostname        $hostname ;# This is not the same as your hostname&lt;br /&gt;
  ns_param   address         $address  ;# This is not the same as your host addr&lt;br /&gt;
  ns_param   location        &amp;quot;http://$hostname/&amp;quot;     ;# URL for auto-redirects (trailing slash)&lt;br /&gt;
&lt;br /&gt;
  #&lt;br /&gt;
  # Socket driver module (HTTPS) -- nsssl&lt;br /&gt;
  #&lt;br /&gt;
  ns_section &amp;quot;ns/server/${servername}/module/nsssl&amp;quot;&lt;br /&gt;
  ns_param   port            $httpsport&lt;br /&gt;
  ns_param   hostname        $hostname     &lt;br /&gt;
  ns_param   address         $address  &lt;br /&gt;
  ns_param   keyfile         $sslkeyfile&lt;br /&gt;
  ns_param   certfile        $sslcertfile&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  #&lt;br /&gt;
  # Control port -- nscp&lt;br /&gt;
  #&lt;br /&gt;
  # To enable:&lt;br /&gt;
  #&lt;br /&gt;
  # 1. Define an address and port to listen on. For security&lt;br /&gt;
  #    reasons listening on any port other then 127.0.0.1 is&lt;br /&gt;
  #    not recommended.&lt;br /&gt;
  #&lt;br /&gt;
  # 2. Decided whether or not you wish to enable features such&lt;br /&gt;
  #    as password echoing at login time, and command logging.&lt;br /&gt;
  #&lt;br /&gt;
  # 3. Add a list of authorized users and passwords. The entires&lt;br /&gt;
  #    take the following format:&lt;br /&gt;
  #&lt;br /&gt;
  #    &amp;lt;user&amp;gt;:&amp;lt;encryptedPassword&amp;gt;:&lt;br /&gt;
  #&lt;br /&gt;
  #    You can use the ns_crypt Tcl command to generate an encrypted&lt;br /&gt;
  #    password. The ns_crypt command uses the same algorithm as the&lt;br /&gt;
  #    Unix crypt(3) command. You could also use passwords from the&lt;br /&gt;
  #    /etc/passwd file.&lt;br /&gt;
  #&lt;br /&gt;
  #    The first two characters of the password are the salt - they can be&lt;br /&gt;
  #    anything since the salt is used to simply introduce disorder into&lt;br /&gt;
  #    the encoding algorithm.&lt;br /&gt;
  #&lt;br /&gt;
  #    ns_crypt &amp;lt;key&amp;gt; &amp;lt;salt&amp;gt;&lt;br /&gt;
  #    ns_crypt x t2&lt;br /&gt;
  #&lt;br /&gt;
  #    The configuration example below adds the user &amp;quot;nsadmin&amp;quot; with a&lt;br /&gt;
  #    password of &amp;quot;x&amp;quot;.&lt;br /&gt;
  #&lt;br /&gt;
  # 4. Make sure the nscp.so module is loaded in the modules section.&lt;br /&gt;
  #&lt;br /&gt;
  ns_section &amp;quot;ns/server/${servername}/module/nscp&amp;quot;&lt;br /&gt;
  ns_param   port            $controlport      ;# Control port listens on port 9999&lt;br /&gt;
  ns_param   address         127.0.0.1         ;# For security, use 127.0.0.1 only&lt;br /&gt;
  ns_param   echopassword 1&lt;br /&gt;
  ns_param   cpcmdlogging 1&lt;br /&gt;
  ns_param   reconnection off&lt;br /&gt;
&lt;br /&gt;
  # Control port users&lt;br /&gt;
  ns_section &amp;quot;ns/server/${servername}/module/nscp/users&amp;quot;&lt;br /&gt;
  # The default password for nsadmin is &amp;quot;x&amp;quot;. You should change it.&lt;br /&gt;
  # type &amp;quot;ns_crypt newpassword salt&amp;quot; and put the encrypted string below.&lt;br /&gt;
  ns_param user &amp;quot;nsadmin:t2GqvvaiIUbF2:&amp;quot; ;# sample user=&amp;quot;nsadmin&amp;quot;, pw=&amp;quot;x&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
  #&lt;br /&gt;
  # Access log -- nslog&lt;br /&gt;
  #&lt;br /&gt;
  ns_section &amp;quot;ns/server/${servername}/module/nslog&amp;quot;&lt;br /&gt;
  ns_param   file            ${serverlog}&lt;br /&gt;
  ns_param   formattedtime   true      ;# true=common log format&lt;br /&gt;
  ns_param   logcombined     false     ;# true==NCSA combined format&lt;br /&gt;
  ns_param   maxbackup       5         ;# Max number to keep around when rolling&lt;br /&gt;
  ns_param   rollhour        0         ;# Time to roll log&lt;br /&gt;
  ns_param   rolllog         true      ;# Should we roll log?&lt;br /&gt;
  ns_param   rollonsignal    true      ;# Roll log on SIGHUP&lt;br /&gt;
&lt;br /&gt;
  #&lt;br /&gt;
  # CGI interface -- nscgi&lt;br /&gt;
  #&lt;br /&gt;
  # Note: CGI is *vastly* inferior to ADP's or even built-in Tcl libraries.&lt;br /&gt;
  #&lt;br /&gt;
  ns_section &amp;quot;ns/server/${servername}/module/nscgi&amp;quot;&lt;br /&gt;
  ns_param   debug           false     ;# Be chatty in log&lt;br /&gt;
  ns_param   gethostbyaddr   false     ;# Whether to do reverse DNS lookups&lt;br /&gt;
  ns_param   limit           0         ;# Max number of concurrent CGI processes&lt;br /&gt;
  ns_param   maxoutput       10240     ;# Max bytes allowed from external process&lt;br /&gt;
  ns_param   buffersize      8192      ;# Buffer output from external process&lt;br /&gt;
  #ns_param   map #    &amp;quot;GET /cgi-lib /usr/lib/cgi-bin&amp;quot;        ;# Where system CGI executables live (GET)&lt;br /&gt;
  #ns_param   map #    &amp;quot;POST /cgi-lib /usr/lib/cgi-bin&amp;quot;       ;# Where system CGI executables live (POST)&lt;br /&gt;
  #ns_param   map #    &amp;quot;GET /cgi-bin /usr/local/cgi-bin&amp;quot;      ;# Where your CGI executables live (GET)&lt;br /&gt;
  #ns_param   map #    &amp;quot;POST /cgi-bin /usr/local/cgi-bin&amp;quot;     ;# Where your CGI executables live (POST)&lt;br /&gt;
  ns_param   map     &amp;quot;GET /cgi-bin /usr/lib/cgi-bin&amp;quot;      ;# Where your CGI executables live (GET)&lt;br /&gt;
  ns_param   map     &amp;quot;POST /cgi-bin /usr/lib/cgi-bin&amp;quot;     ;# Where your CGI executables live (POST)&lt;br /&gt;
&lt;br /&gt;
  ns_param map            &amp;quot;GET /*.py&amp;quot;&lt;br /&gt;
  #ns_param map           &amp;quot;GET /doc /usr/share/doc&amp;quot;&lt;br /&gt;
  ns_param map            &amp;quot;POST /*.pl&amp;quot;&lt;br /&gt;
  ns_param map            &amp;quot;POST /*.py&amp;quot;&lt;br /&gt;
  ns_param interps         cgiinterps&lt;br /&gt;
                                                                                                                &lt;br /&gt;
  #ns_section &amp;quot;ns/interps/CGIinterps&amp;quot;&lt;br /&gt;
  #ns_param .pl          &amp;quot;/usr/bin/perl&amp;quot;&lt;br /&gt;
  #ns_param .sh          &amp;quot;/bin/sh&amp;quot;&lt;br /&gt;
  #ns_param .py          &amp;quot;/usr/bin/python&amp;quot;&lt;br /&gt;
                                                                                                                &lt;br /&gt;
&lt;br /&gt;
  # CGI environment variable handling -- See admin guide&lt;br /&gt;
  ns_param   systemenvironment false   ;# Copies environment from nsd start shell&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  #&lt;br /&gt;
  # Access control (permissions) -- nsperm&lt;br /&gt;
  #&lt;br /&gt;
  ns_section &amp;quot;ns/server/${servername}/module/nsperm&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  #&lt;br /&gt;
  # Unix domain socket driver -- nsunix&lt;br /&gt;
  #&lt;br /&gt;
  ns_section &amp;quot;ns/server/${servername}/module/nsunix&amp;quot;&lt;br /&gt;
  ns_param   hostname        $hostname    ;# Hostname used in response to client&lt;br /&gt;
  ns_param   port            $httpport           ;# Port to listen on&lt;br /&gt;
  ns_param   socketfile      /var/run/${package}/${servername}.sock ;# UNIX domain socket driver&lt;br /&gt;
&lt;br /&gt;
  #&lt;br /&gt;
  # Virtual Hosting redirector -- nsvhr&lt;br /&gt;
  #&lt;br /&gt;
  ns_section &amp;quot;ns/server/${servername}/module/nsvhr&amp;quot;&lt;br /&gt;
  ns_param   busyurl         &amp;quot;url&amp;quot;     ;# Redirect here if back-end times out&lt;br /&gt;
  ns_param   errorurl        &amp;quot;url&amp;quot;     ;# Redirect here on proxy errors&lt;br /&gt;
  ns_param   method          &amp;quot;GET&amp;quot;     ;# Methods allowed to proxy&lt;br /&gt;
  ns_param   method          &amp;quot;POST&amp;quot;    ;# Methods allowed to proxy (can have &amp;gt;1)&lt;br /&gt;
  ns_param   timeout         30        ;# Timeout waiting for back-end&lt;br /&gt;
&lt;br /&gt;
  # Register hosts to proxy&lt;br /&gt;
  #ns_section &amp;quot;ns/server/${servername}/module/nsvhr/maps&amp;quot;&lt;br /&gt;
  #ns_param   &amp;quot;www.tcpsocket.com&amp;quot;    &amp;quot;http://127.0.0.0:2000&amp;quot; ;# HTTP proxy&lt;br /&gt;
  #ns_param   &amp;quot;www.domainsocket.com&amp;quot; &amp;quot;unix://somehost&amp;quot;       ;# Domain socket&lt;br /&gt;
&lt;br /&gt;
  #&lt;br /&gt;
  # Database drivers&lt;br /&gt;
  #&lt;br /&gt;
  # Two pools are given here.  Sybase uses the Sybase client libraries,&lt;br /&gt;
  # obtained from Sybase.  Postgres is freely available at&lt;br /&gt;
  # www.postgresql.org.  Sybase uses an external proxy daemon while&lt;br /&gt;
  # Postgres uses an internal driver.  The Sybase driver requires some&lt;br /&gt;
  # configuration in ns/db/driver/sybase_driver to tell th &amp;quot;nsext.so&amp;quot;&lt;br /&gt;
  # driver where to find the nssybpd executable and some other things.&lt;br /&gt;
  # The Postgres driver doesn't need any of that because it's internal&lt;br /&gt;
  # and does not use nsext.so.&lt;br /&gt;
  #&lt;br /&gt;
  #ns_section &amp;quot;ns/db/drivers&amp;quot;&lt;br /&gt;
  #ns_param   sybase_driver   nsext.so       ;# Use nsext.so for a proxy daemon&lt;br /&gt;
  #ns_param   postgres_driver nspostgres.so  ;# An internal driver&lt;br /&gt;
  #&lt;br /&gt;
  #ns_section &amp;quot;ns/db/driver/sybase_driver&amp;quot;&lt;br /&gt;
  #ns_param   localdaemon     nssybpd        ;# Name of the proxy daemon executable&lt;br /&gt;
  #ns_param   param           path_to_sybase ;# Usually the $SYBASE env var&lt;br /&gt;
  #&lt;br /&gt;
  #ns_section &amp;quot;ns/db/pools&amp;quot;&lt;br /&gt;
  #ns_param   sybase_pool    &amp;quot;Sybase Pool&amp;quot;&lt;br /&gt;
  #ns_param   postgres_pool  &amp;quot;Postgres Pool&amp;quot;&lt;br /&gt;
  #&lt;br /&gt;
  #ns_section &amp;quot;ns/db/pool/sybase_pool&amp;quot;&lt;br /&gt;
  #ns_param   driver          sybase_driver&lt;br /&gt;
  #ns_param   datasource      SERVER_NAME:database_name&lt;br /&gt;
  #ns_param   user            user_name&lt;br /&gt;
  #ns_param   password        password&lt;br /&gt;
  #ns_param   connections     1&lt;br /&gt;
  #ns_param   logsqlerrors    true      ;# Verbose SQL query error logging&lt;br /&gt;
  #ns_param   verbose         false     ;# Verbose error logging&lt;br /&gt;
  #ns_param   maxidle         600       ;# Max time to keep idle db conn open&lt;br /&gt;
  #ns_param   maxopen         3600      ;# Max time to keep active db conn open&lt;br /&gt;
  #&lt;br /&gt;
  #ns_section &amp;quot;ns/db/pool/postgres_pool&amp;quot;&lt;br /&gt;
  #ns_param   driver          postgres_driver&lt;br /&gt;
  #ns_param   datasource      HOSTNAME:PORT:database_name&lt;br /&gt;
  #ns_param   user            user_name&lt;br /&gt;
  #ns_param   password        password&lt;br /&gt;
  #ns_param   connections     1&lt;br /&gt;
  #ns_param   logsqlerrors    true      ;# Verbose SQL query error logging&lt;br /&gt;
  #ns_param   verbose         false     ;# Verbose error logging&lt;br /&gt;
  #ns_param   maxidle         600       ;# Max time to keep idle db conn open&lt;br /&gt;
  #ns_param   maxopen         3600      ;# Max time to keep active db conn open&lt;br /&gt;
  #&lt;br /&gt;
  # Accessing DB pools&lt;br /&gt;
  #&lt;br /&gt;
  # In the case of virtual servers you can give different virtual&lt;br /&gt;
  # servers access to different databases, or you can let them access&lt;br /&gt;
  # them all.  AOLserver 3.x does not use virtual servers so the only&lt;br /&gt;
  # useful value is &amp;quot;*&amp;quot;, but if you use one config file for multiple nsd&lt;br /&gt;
  # processes, or you are using a version of AOLserver that supports&lt;br /&gt;
  # virtual servers, then you should list the pools you want to access.&lt;br /&gt;
  #&lt;br /&gt;
  #ns_section &amp;quot;ns/server/${servername}/db&amp;quot;&lt;br /&gt;
  #ns_param pools          *            ;# Wildcard gives access to all&lt;br /&gt;
  #ns_param defaultpool    sybase_pool&lt;br /&gt;
  #&lt;br /&gt;
&lt;br /&gt;
  #&lt;br /&gt;
  # Modules to load&lt;br /&gt;
  #&lt;br /&gt;
  # Note: Only load the modules you are actually going to use.&lt;br /&gt;
  # Add here optional modules when needed.&lt;br /&gt;
  #&lt;br /&gt;
  ns_section &amp;quot;ns/server/${servername}/modules&amp;quot;&lt;br /&gt;
  ns_param   nssock             nssock.so&lt;br /&gt;
  ns_param   nslog              nslog.so&lt;br /&gt;
  ns_param   nscgi              nscgi.so&lt;br /&gt;
  ns_param   nsperm             nsperm.so&lt;br /&gt;
  #ns_param   nscp               nscp.so&lt;br /&gt;
  #if { [file exists $sslcertfile] &amp;amp;&amp;amp; [file exists $sslkeyfile] } {&lt;br /&gt;
  #ns_param   nsssl 	       nsssl.so&lt;br /&gt;
  #}&lt;br /&gt;
                                                                                                                &lt;br /&gt;
  #&lt;br /&gt;
  # Loading a Tcl module&lt;br /&gt;
  #&lt;br /&gt;
  # This example shows a Tcl module, called &amp;quot;tcl_module&amp;quot;, has its code&lt;br /&gt;
  # in the AOLserver Tcl library in either the modules/tcl/tcl_module&lt;br /&gt;
  # directory or servers/servername/modules/tcl/tcl_module directory.&lt;br /&gt;
  #&lt;br /&gt;
  ns_param   tcl_module          tcl&lt;br /&gt;
&lt;br /&gt;
                                                                                                                &lt;br /&gt;
  #&lt;br /&gt;
  # Example: Multiple connection thread pools.&lt;br /&gt;
  #&lt;br /&gt;
  # To enable:&lt;br /&gt;
  #&lt;br /&gt;
  # 1. Define one or more thread pools.&lt;br /&gt;
  # 2. Configure pools as with the default server pool.&lt;br /&gt;
  # 3. Map method/URL combinations to the pools&lt;br /&gt;
  #&lt;br /&gt;
  # All unmapped method/URL's will go to the default server pool.&lt;br /&gt;
  #&lt;br /&gt;
  #ns_section ns/server/main/pools&lt;br /&gt;
  #ns_section slow &amp;quot;Slow requests here.&amp;quot;&lt;br /&gt;
  #ns_section fast &amp;quot;Fast requests here.&amp;quot;&lt;br /&gt;
  #&lt;br /&gt;
  #ns_section ns/server/main/pool/slow&lt;br /&gt;
  #ns_param map {POST /slowupload.adp}&lt;br /&gt;
  #ns_param maxconnections  100       ;# Max connections to put on queue&lt;br /&gt;
  #ns_param maxdropped      0         ;# Shut down if dropping too many conns&lt;br /&gt;
  #ns_param maxthreads      20        ;# Tune this to scale your server&lt;br /&gt;
  #ns_param minthreads      0         ;# Tune this to scale your server&lt;br /&gt;
  #ns_param threadtimeout   120       ;# Idle threads die at this rate&lt;br /&gt;
  #&lt;br /&gt;
  #ns_section ns/server/main/pool/fast&lt;br /&gt;
  #ns_param map {GET /faststuff.adp}&lt;br /&gt;
  #ns_param maxthreads 10&lt;br /&gt;
  #&lt;br /&gt;
&lt;br /&gt;
  #&lt;br /&gt;
  # Example:  Web based stats interface.&lt;br /&gt;
  #&lt;br /&gt;
  # To enable:&lt;br /&gt;
  #&lt;br /&gt;
  # 1. Configure whether or not stats are enabled. (Optional: default = false)&lt;br /&gt;
  # 2. Configure URL for statistics. (Optional: default = /_stats)&lt;br /&gt;
  #&lt;br /&gt;
  #    http://&amp;lt;host&amp;gt;:&amp;lt;port&amp;gt;/_stats&lt;br /&gt;
  #&lt;br /&gt;
  # 3. Configure user. (Optional: default = aolserver)&lt;br /&gt;
  # 4. Configure password. (Optional: default = stats)&lt;br /&gt;
  #&lt;br /&gt;
  # For added security it is recommended that configure your own&lt;br /&gt;
  # URL, user, and password instead of using the default values.&lt;br /&gt;
  #&lt;br /&gt;
  #ns_section ns/server/stats&lt;br /&gt;
  #    ns_param enabled 1&lt;br /&gt;
  #    ns_param url /aolserver/stats&lt;br /&gt;
  #    ns_param user nsadmin&lt;br /&gt;
  #    ns_param password 23dfs!d&lt;br /&gt;
  #&lt;/div&gt;</summary>
		<author><name>Visitatvishal</name></author>
		
	</entry>
</feed>