Sure - here you are:

###############################################################################
#
#      This is a Tcl script that is sourced when AOLserver starts up.
#      A detailed reference is in "doc/config.txt".
#
###############################################################################
ns_log notice "nsd.tcl: starting to read config file..."


###############################################################################
#
# Set some Tcl variables that are commonly used throughout this file.
#
###############################################################################
set httpport                        80
set httpsport                       443
#
# The hostname and address should be set to actual values.
#
set hostname                        [ns_info hostname]
set address                         [ns_info address]
set address                         127.0.0.1
set servername                      "myserver"
set serverdesc                      "My Server Coporate Site"
set homedir                         [file dirname [ns_info config]]
set bindir                          [file dirname [ns_info nsd]]
set bin                             [file dirname [info nameofexecutable]]
set ext                             [info sharedlibextension]
set directoryfile                   
index.adp,index.tcl,index.html,index.htm,default.html,default.htm
set INT_MAX                         2147483647
###############################################################################



###############################################################################
#
# Global server parameters (nsconf.c)
#
###############################################################################
ns_section  ns/parameters
ns_param    home                    $homedir
ns_param    stacksize               [expr 512*1024]                             ;# 
Per-thread stack size.
#
# Server logging
#
ns_param    logusec                 false                                       ;# Use 
C based logging?
ns_param    logroll                 false                                       ;# 
Roll server.log every 24 hours.
ns_param    logexpanded             false                                       ;# 
true = double-spaced server.log
ns_param    debug                   true                                        ;# 
Display logging with "Debug" severity
ns_param    dev                     true                                        ;# 
Display logging with "Dev" severity
ns_param    notice                  true                                        ;# 
Display logging with "Notice" severity
ns_param    logmaxbackup            7                                           ;# Max 
number of old server.log files
ns_param    logmaxlevel             $INT_MAX                                    ;# Max 
number of lines to log?
ns_param    logmaxbuffer            10                                          ;# Max 
number of lines to buffer?
ns_param    logflushinterval        10                                          ;# 
Number of seconds between flushes?
ns_param    serverlog               ${homedir}/log/server.log                   ;# 
Filename of server.log
ns_param    pidfile                 ${homedir}/log/nspid.${httpport}            ;# PID 
of server (named "nspid.PORT") (pidfile.c)
#
# I/O parameters
#
ns_param    shutdowntimeout         20                                          ;# 
Secs to wait on shutdown if open conns
ns_param    schedmaxelapsed         2                                           ;# 
Warn when waiting on really long procs
ns_param    listenbacklog           32                                          ;# Max 
number of pending connections
#
# DNS tuning
#
ns_param    dnscache                true                                        ;# 
In-memory cache of DNS lookups
ns_param    dnscachemaxentries      256                                         ;# How 
many hostnames to keep in cache
ns_param    dnscachetimeout         60                                          ;# How 
long to keep hostnames in cache
#
# HTTP Keepalives
#
ns_param    keepalivetimeout        30                                          ;# Max 
time conn is kept alive (keepalive)(set to 0 to disable keepalive)
ns_param    maxkeepalive            100                                         ;# 
Maximun number of connections to keep alive
#
# Misc
#
ns_param    objcmds                 true                                        ;# Use 
TclObj commands (faster)
ns_param    verbose                 true                                        ;# Be 
chatty in the log file
#
# Sendmail (sendmail.tcl)
#
ns_param    smtphost                smtp.somewhere.com                          ;# 
SMTP server to use
ns_param    mailhost                smtp.somewhere.com                          ;# 
SMTP server to use
ns_param    smtptimeout             60                                          ;# 
Timeout for connecting to the server
ns_param    smtpport                25                                          ;# 
Port to connect to SMTP server on
#
#         I18N Parameters
#
#ns_param    HackContentType        false                                       ;# 
automatic adjustment of response
                                                                                 # 
content-type header to include charset
                                                                                 # 
This defaults to True.
ns_param    OutputCharset           iso8859-1                                   ;# 
Default output charset.  When none specified,
                                                                                 # no 
character encoding of output is performed.
#ns_param    URLCharset             utf-8                                       ;# 
Default Charset for Url Encode/Decode.
                                                                                 # 
When none specified, no character set encoding
                                                                                 # is 
performed.
###############################################################################



###############################################################################
#
# Thread library (nsthread) parameters
#
###############################################################################
ns_section  ns/threads
ns_param    mutexmeter              true                                        ;# 
measure lock contention
ns_param    stacksize               [expr 512*1024]                             ;# 
Per-thread stack size.
###############################################################################



###############################################################################
#
# Character encodings (encoding.c)
#
###############################################################################
ns_section  ns/charsets
ns_section  ns/encodings
ns_param    .utf_html               "utf-8"
ns_param    .sjis_html              "shiftjis"
ns_param    .gb_html                "gb2312"
ns_param    .big5_html              "big5"
ns_param    .euc-cn_html            "euc-cn"
###############################################################################



###############################################################################
#
# MIME types (mimetypes.c)
#
#  Note: AOLserver already has an exhaustive list of MIME types, but in
#  case something is missing you can add it here.
#
###############################################################################
ns_section  ns/mimetypes
ns_param    default                 "*/*"                                       ;# 
MIME type for unknown extension.
ns_param    noextension             "*/*"                                       ;# 
MIME type for missing extension.
ns_param    ".xls"                  "application/vnd.ms-excel"
#
#   I18N Mime-types; define content-type header values to be mapped from these 
file-types.
#
ns_param    .adp                    "text/html; charset=iso-8859-1"
ns_param    .u_adp                  "text/html; charset=UTF-8"
ns_param    .gb_adp                 "text/html; charset=GB2312"
ns_param    .sjis_html              "text/html; charset=shift_jis"
ns_param    .sjis_adp               "text/html; charset=shift_jis"
ns_param    .gb_html                "text/html; charset=GB2312"
###############################################################################



###############################################################################
#
# nsdb section for db database
#
###############################################################################
set dbname                          test
set db1user                         nsadmin                                     ;# The 
database username
set db1password                     nsadmin                                     ;# The 
database password
ns_section  ns/db/drivers
ns_param    postgres                ${bindir}/nspostgres${ext}

ns_section  ns/db/pool/main
ns_param    driver                  postgres
ns_param    datasource              "127.0.0.1::$dbname"
ns_param    user                    $db1user                                    ;# 
Username for database
ns_param    password                $db1password                                ;# 
Password for database
ns_param    connections             5                                           ;# No. 
of connections to open
ns_param    logsqlerrors            true                                        ;# 
Verbose SQL query error logging
ns_param    maxidle                 600                                         ;# Max 
time to keep idle db conn open
ns_param    maxopen                 3600                                        ;# Max 
time to keep active db conn open
ns_param    verbose                 true                                        ;# 
Verbose error logging

#ns_section  ns/db/pool/subquery
#ns_param    driver                  postgres
#ns_param    datasource              "127.0.0.1::$dbname"
#ns_param    connections             5
#ns_param    user                    $db1user
#ns_param    password                $db1password
#ns_param    logsqlerrors            true                                        ;# 
Verbose SQL query error logging
#ns_param    maxidle                 600                                         ;# 
Max time to keep idle db conn open
#ns_param    maxopen                 3600                                        ;# 
Max time to keep active db conn open
#ns_param    verbose                 true
#
#ns_section ns/db/pool/log
#ns_param    driver                  postgres
#ns_param    datasource              "127.0.0.1::$dbname"
#ns_param    connections             5
#ns_param    user                    $db1user
#ns_param    password                $db1password
#ns_param    logsqlerrors            true                                        ;# 
Verbose SQL query error logging
#ns_param    maxidle                 600                                         ;# 
Max time to keep idle db conn open
#ns_param    maxopen                 3600                                        ;# 
Max time to keep active db conn open
#ns_param    verbose                 true

ns_section  ns/db/pools
ns_param    main                    "main"
#ns_param    subquery                "subquery"
#ns_param    log                     "log"
###############################################################################



###############################################################################
#
# Set up the servers (virtual hosts)
#
###############################################################################
set servers(com)                    [list "Main site" www.mycompany.com]
set servers(net)                    [list "Corporate site" www.mycompany.net]
set servers(docs)                   [list "Documentation" docs.mycompany.net]
set servers(test)                   [list "Test server" test.mycompany.net]
#set servers(test8080)               [list "Test server on 8080" 
test.mycompany.net:8080]
ns_section  ns/servers
foreach server [array names servers] {
    ns_log notice "Adding server '[lindex $servers($server) 0]'"
    ns_param    $server                 [lindex $servers($server) 0]
}
###############################################################################



###############################################################################
#
# Socket driver module (HTTP)  -- nssock (driver.c)
#
###############################################################################
ns_section  ns/modules
ns_param    nssock                  ${bindir}/nssock${ext}
#
ns_section  ns/module/nssock
ns_param    hostname                $hostname                                   ;# 
This is not the same as your hostname
ns_param    address                 $address                                    ;# 
This is not the same as your host addr
ns_param    bufsize                 [expr 16 * 1024]                            ;# IO 
buffer size
ns_param    rcvbuf                  0                                           ;# Use 
OS defaults
ns_param    sndbuf                  0                                           ;# Use 
OS defaults
ns_param    socktimeout             30                                          ;# 
Connection timeout
ns_param    sendwait                30                                          ;# 
Timeout for sending of data
ns_param    recvwait                30                                          ;# 
Timeout for receiving data
ns_param    closewait               2                                           ;# 
Timeout for closing socket
ns_param    keepwait                30                                          ;# 
Keepalive inactivity timeout
ns_param    backlog                 5                                           ;# 5 
pending connectionss
ns_param    port                    $httpport                                   ;# 
Port for HTTP (typically 80)
ns_param    location                ""                                          ;# URL 
for auto-redirects (trailing slash)
ns_section  ns/module/nssock/servers
foreach server [array names servers] {
    foreach vhost [lrange $servers($server) 1 end] {
        ns_log notice "Adding virtual server $vhost to $server"
        ns_param    $server                 $vhost
    }
}
###############################################################################



###############################################################################
#
# Socket driver module (HTTPS) -- nsssl (driver.c)
#
# nsssl: Only loads if keyfile.pem and certfile.pem exist.
#
###############################################################################
#set         sslmodule               nsssl${ext}                                 ;# 
Domestic 128-bit/1024-bit SSL.
#set         sslmodule               nsssle${ext}                                ;# 
Exportable 40-bit/512-bit SSL.
#set         sslkeyfile              
${homedir}/servers/${servername}/modules/nsssl/keyfile.pem
#set         sslcertfile             
${homedir}/servers/${servername}/modules/nsssl/certfile.pem
#if { [file exists $sslcertfile] && [file exists $sslkeyfile] } {
#    ns_section  ns/modules
#    ns_param nsssl ${bindir}/${sslmodule}
#} else {
#    ns_log warning "nsd.tcl: nsssl not loaded -- key/cert files do not exist."
#}
#ns_section  ns/module/nsssl
#ns_param    hostname                $hostname                                   ;# 
This is not the same as your hostname
#ns_param    address                 $address                                    ;# 
This is not the same as your host addr
#ns_param    bufsize                 [expr 16 * 1024]                            ;# IO 
buffer size
#ns_param    rcvbuf                  0                                           ;# 
Use OS defaults
#ns_param    sndbuf                  0                                           ;# 
Use OS defaults
#ns_param    socktimeout             30                                          ;# 
Connection timeout
#ns_param    sendwait                30                                          ;# 
Timeout for sending of data
#ns_param    recvwait                30                                          ;# 
Timeout for receiving data
#ns_param    closewait               2                                           ;# 
Timeout for closing socket
#ns_param    keepwait                30                                          ;# 
Keepalive inactivity timeout
#ns_param    backlog                 5                                           ;# 5 
pending connections
#ns_param    port                    $httpsport                                  ;# 
Port for HTTP (typically 80)
#ns_param    location                "/"                                         ;# 
URL for auto-redirects (trailing slash)
#ns_param    certfile                $sslcertfile
#ns_param    keyfile                 $sslkeyfile
#ns_section  ns/module/nsssl/servers
#foreach server [array names servers] {
#    foreach vhost [lrange $servers($server) 1 end] {
#        ns_param    $server                 $vhost
#    }
#}
###############################################################################



foreach servername [array names servers] {
set serverroot                      servers/${servername}
set serverdir                       ${homedir}/servers/${servername}
set pageroot                        ${homedir}/servers/${servername}/pages
foreach d [list log servers $serverroot $serverroot/modules $serverroot/pages] {
        if ![file exists $homedir/$d] {
                file mkdir $homedir/$d
        }
}
###############################################################################
#
# Server-level configuration (nsmain.c)
#
#  There is only one server in AOLserver, but this is helpful when multiple
#  servers share the same configuration file.  This file assumes that only
#  one server is in use so it is set at the top in the "server" Tcl variable.
#  Other host-specific values are set up above as Tcl variables, too.
#
###############################################################################
#
# Server specific parameters
#
ns_section  ns/server/${servername}
ns_param    realm                   MyCoproration                               ;# 
Realm used for authentication
ns_param    enableaolpress          false                                       ;# 
Enable extra features used by AOLpress
ns_param    checkmodifiedsince      true                                        ;# 
Check url if no If-Modified-Since?
ns_param    flushcontent            false                                       ;# 
Flush all data before returning
ns_param    noticedetail            true                                        ;# 
Print the "AOLserver on" notice at the bottom of pages
ns_param    headercase              preserve                                    ;# 
tolower, toupper, preserve
#
# IO Limits
#
ns_param    sendfdthreshold         [expr 2 * 1024]                             ;# Min 
size of file descriptor to send
ns_param    errorminsize            [expr 512 + 2]                              ;# 
Minimum size of an error page (stops IE friendly pages if 512+)
ns_param    maxline                 [expr 16 * 1024]                            ;# Max 
line length from client
ns_param    maxheaders              [expr 64 * 1024]                            ;# Max 
header data from client
ns_param    maxpost                 [expr 256 * 1024]                           ;# Max 
bytes on a POST
#
# Other server parameters
#
ns_log notice "Server $servername is using pageroot '${pageroot}'"
ns_param    pageroot                ${pageroot}                                 ;# 
Default docroot for the server (server.c)
###############################################################################



###############################################################################
#
# database configuration
#
###############################################################################
ns_section  ns/server/$servername/db
ns_param    pools                   *                                           ;# 
Optionally specify list of pools
ns_param    defaultpool             "main"                                      ;# 
Optionally specify default pool
###############################################################################



###############################################################################
#
# Tcl interpreter parameters
#
###############################################################################
ns_section  ns/server/${servername}/tcl
ns_param    library                 ${serverdir}/modules/tcl                    ;# 
Private tcl library for the server
ns_param    initfile                ${bindir}/init.tcl                          ;# Tcl 
init file
ns_param    nsvbuckets              8                                           ;# No. 
of buckets to hold nsv's
ns_param    errorpage               ${pageroot}/errorpages/errorpage.tcl        ;# 
Pretty-print Tcl errors with a Tcl page
ns_param    enabletclpages          true                                        ;# 
allow .tcl files to be parsed
ns_param    crashcmd                ns_crash                                    ;# A 
Tcl command that dumps core.
ns_param    enableAdmin             true                                        ;# 
enable the /NS/Admin pages (nsadmin_gettcl.tcl)
###############################################################################



###############################################################################
#
# Fastpath serves static HTML (server.c)
#
###############################################################################
ns_section  ns/server/${servername}/fastpath
ns_param    cache                   true                                        ;# 
Enable cache for normal URLs
ns_param    cachemaxsize            [expr 5000 * 1024]                          ;# 
Size of fastpath cache
ns_param    cachemaxentry           [expr 8 * 1024]                             ;# 
Largest file size allowable in cache
ns_param    mmap                    false                                       ;# Use 
mmap() for cache
ns_param    directoryfile           $directoryfile                              ;# 
Directory index/default pages to look for
#
# Directory listings -- use an ADP or a Tcl proc to generate them.
#
#ns_param    directorylisting        "fancy"                                     ;# 
Can be simple or fancy.
ns_param    directoryproc           _ns_dirist                                  ;# Can 
use the named Tcl proc or an ADP page ...but not both!
#ns_param   directoryadp             $pageroot/dirlist.adp                       ;# 
Choose one or the other.
ns_param    hidedot                 1                                           ;# 
show dotfiles (fastpath.tcl)
ns_param    toppage                 0                                           ;# 
show miniweb toppages? (fastpath.tcl)
###############################################################################



###############################################################################
#
# Internal redirects to custom error pages
#
###############################################################################
ns_section  ns/server/${servername}/redirects
ns_param    400                     "/errorpages/400.html"                      ;# 400 
(Bad Request) error page
#ns_param    401                     "/errorpages/401.html"                      ;# 
401 (Unauthorized) error page
ns_param    402                     "/errorpages/402.html"                      ;# 402 
(Payment Required) error page
ns_param    403                     "/errorpages/403.html"                      ;# 403 
(Forbidden) error page
ns_param    404                     "/errorpages/404.html"                      ;# 404 
(Not found) error page
ns_param    405                     "/errorpages/405.html"                      ;# 405 
(Method not allowed) error page
ns_param    406                     "/errorpages/406.html"                      ;# 406 
(Not acceptable) error page
ns_param    407                     "/errorpages/407.html"                      ;# 407 
(Proxy authentication required) error page
ns_param    408                     "/errorpages/408.html"                      ;# 408 
(Request Time-out) error page
ns_param    409                     "/errorpages/409.html"                      ;# 409 
(Conflict) error page
ns_param    410                     "/errorpages/410.html"                      ;# 410 
(Gone) error page
ns_param    411                     "/errorpages/411.html"                      ;# 411 
(Length required) error page
ns_param    412                     "/errorpages/412.html"                      ;# 412 
(Precondition Failed) error page
ns_param    413                     "/errorpages/413.html"                      ;# 413 
(Request Entity Too Large) error page
ns_param    414                     "/errorpages/414.html"                      ;# 414 
(Request-URI Too Large) error page
ns_param    415                     "/errorpages/415.html"                      ;# 415 
(Unsupported Media Type) error page
ns_param    416                     "/errorpages/416.html"                      ;# 416 
(Requested Range Not Satisfiable) error page
ns_param    417                     "/errorpages/417.html"                      ;# 417 
(Expectation Failed) error page
ns_param    500                     "/errorpages/500.html"                      ;# 500 
(Internal Server Error) error page
ns_param    501                     "/errorpages/501.html"                      ;# 501 
(Not Implemented) error page
ns_param    502                     "/errorpages/502.html"                      ;# 502 
(Bad Gateway) error page
ns_param    503                     "/errorpages/503.html"                      ;# 503 
(Service Unavailable) error page
ns_param    504                     "/errorpages/504.html"                      ;# 504 
(Gateway Time-out) error page
ns_param    505                     "/errorpages/505.html"                      ;# 505 
(HTTP Version not supported) error page
###############################################################################



###############################################################################
#
# ADP (AOLserver Dynamic Page) configuration
#
###############################################################################
ns_section  ns/server/${servername}/adp
#
# ADP special pages
#
ns_param    errorpage               ${pageroot}/errorpages/errorpage.adp        ;# 
Pretty-print ADP errors with an ADP
#ns_param    startpage               ${pageroot}/inc/startpage.adp               ;# 
Page to include for all ADP's
#
# ADP tuning
#
ns_param    enableexpire            false                                       ;# Set 
"Expires: now" on all ADP's.
ns_param    enabledebug             false                                       ;# 
Allow Tclpro debugging with "?debug".
ns_param    debuginit               ns_adp_debuginit                            ;# 
Debug init procedure
ns_param    defaultparser           adp                                         ;# 
Default parser to use
ns_param    cachesize               [expr 5000*1024]                            ;# 
Size of the ADP cache
ns_param    map                     "/*.adp"                                    ;# 
Extensions to parse as ADP's.
ns_param    map                     "/*.fadp"                                   ;# 
Extensions to parse as ADP's.
ns_param    map                     "/*.inc"                                    ;# 
Extensions to parse as ADP's.
ns_param    map                     "/*.txt"                                    ;# Any 
extension can be mapped.
#   I18N Note: will need to define I18N specifying mappings of ADP's here as well.
ns_param    map                     "/*.u_adp"
ns_param    map                     "/*.gb_adp"
ns_param    map                     "/*.sjis_adp"
ns_param    directoryfile           $directoryfile                              ;# 
Directory index/default pages to look for
###############################################################################



###############################################################################
#
# Connection/Thread pools
#
###############################################################################
ns_section  ns/server/${servername}/pools
ns_param    pool                    main
ns_section  ns/server/${servername}/pool/main
#
# Scaling and Tuning Options
#
ns_param    maxconnections          100                                         ;# Max 
connections to put on queue
ns_param    minthreads              0                                           ;# 
Tune this to scale your server
ns_param    maxthreads              10                                          ;# 
Tune this to scale your server
ns_param    threadtimeout           120                                         ;# 
Idle threads die at this rate
###############################################################################



###############################################################################
#
# Web based stats interface. (stats.tcl)
#
###############################################################################
#
# To enable:
#
# 1. Configure whether or not stats are enabled. (Optional: default = false)
# 2. Configure URL for statistics. (Optional: default = /_stats)
#
#    http://<host>:<port>/_stats
#
# 3. Configure user. (Optional: default = aolserver)
# 4. Configure password. (Optional: default = stats)
#
# For added security it is recommended that configure your own
# URL, user, and password instead of using the default values.
#
ns_section  ns/server/${servername}/stats
ns_param    enabled                 1
ns_param    url                     /stats
ns_param    user                    nsadmin
ns_param    password                x
###############################################################################



###############################################################################
#
# CGI interface -- nscgi
#
#  WARNING: These directories must not live under pageroot.
#
#  Note: CGI is *vastly* inferior to ADP's or even built-in Tcl libraries.
#
###############################################################################
ns_section  ns/server/${servername}/module/nscgi
ns_param    maxinput                [expr 10 * 1024]                            ;# Max 
bytes allowed from external process
ns_param    limit                   0                                           ;# Max 
number of concurrent CGI processes
ns_param    maxwait                 30                                          ;# 
Maximum time to wait for a CGI process to execute
ns_param    gethostbyaddr           false                                       ;# 
Whether to do reverse DNS lookups
#
# CGI environment variable handling -- See admin guide
#
ns_param    interps                 CGIinterps                                  ;# 
name the interpreters section
ns_param    environment             CGIenvironment                              ;# 
name the environment section
ns_param    systemenvironment       false                                       ;# 
Copies environment from nsd start shell
ns_param    map                     "GET  /cgi $homedir/cgi"                    ;# CGI 
script file dir (GET).
ns_param    map                     "POST /cgi $homedir/cgi"                    ;# CGI 
script file dir (POST).
ns_section  ns/interps/CGIinterps
ns_param    .pl                     "c:\\PROGRA~1\\perl\\bin\\perl.exe"
ns_param    .sh                     "c:\\cygwin\\bin\\bash.exe"
ns_param    .bat                    "c:\\winnt\\system32\\start.exe"
ns_section  ns/environment/CGIenvironment
ns_param    var1                    var1-definition
ns_param    var2                    var2-definition
###############################################################################



###############################################################################
#
# Access log -- nslog
#
###############################################################################
ns_section  ns/server/${servername}/module/nslog
ns_param    file                    "access-${servername}.log"
ns_param    rollfmt                 %Y-%m-%d.%H%M
ns_param    maxbuffer               0
ns_param    maxbackup               7
ns_param    formattedtime           true                                        ;# 
true=common log format
ns_param    logcombined             true                                        ;# 
true=NCSA combined format
ns_param    suppressquery           false
ns_param    rollhour                0                                           ;# 
Time to roll log.
ns_param    rolllog                 false                                       ;# 
Should we roll log?
ns_param    rollonsignal            false                                       ;# 
Roll log on SIGHUP.
ns_param    extendedheaders         Host
###############################################################################



###############################################################################
#
# XML -- nsxml
#
###############################################################################
ns_section  ns/server/${servername}/module/nsxml
ns_param    SaveEmptyTags   true
ns_param    Debug           false
###############################################################################



###############################################################################
#
# Encryption -- nsencrypt
#
###############################################################################
ns_section  ns/server/${servername}/module/nsencrypt
ns_param    PubKeyFile       pubkey.pem
ns_param    PrivKeyFile      privkey.pem
###############################################################################



###############################################################################
#
# OpenSSL - nsopenssl
#
###############################################################################
#ns_section  ns/server/${servername}/module/nsopenssl
#
## NSD-driven connections:
#ns_param    ServerPort                      $httpsport
#ns_param    ServerHostname                  $hostname
#ns_param    ServerAddress                   $address
#ns_param    ServerCertFile                  certfile.pem
#ns_param    ServerKeyFile                   keyfile.pem
#ns_param    ServerProtocols                 "SSLv2, SSLv3, TLSv1"
#ns_param    ServerCipherSuite               
"ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP"
#ns_param    ServerSessionCache              false
#ns_param    ServerSessionCacheID            1
#ns_param    ServerSessionCacheSize          512
#ns_param    ServerSessionCacheTimeout       300
#ns_param    ServerPeerVerify                true
#ns_param    ServerPeerVerifyDepth           3
#ns_param    ServerCADir                     ca
#ns_param    ServerCAFile                    ca.pem
#ns_param    ServerTrace                     false
#
## For listening and accepting SSL connections via Tcl/C API:
#ns_param    SockServerCertFile              certfile.pem
#ns_param    SockServerKeyFile               keyfile.pem
#ns_param    SockServerProtocols             "SSLv2, SSLv3, TLSv1"
#ns_param    SockServerCipherSuite           
"ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP"
#ns_param    SockServerSessionCache          false
#ns_param    SockServerSessionCacheID        2
#ns_param    SockServerSessionCacheSize      512
#ns_param    SockServerSessionCacheTimeout   300
#ns_param    SockServerPeerVerify            true
#ns_param    SockServerPeerVerifyDepth       3
#ns_param    SockServerCADir                 internal_ca
#ns_param    SockServerCAFile                internal_ca.pem
#ns_param    SockServerTrace                 false
#
## Outgoing SSL connections
#ns_param    SockClientCertFile              clientcertfile.pem
#ns_param    SockClientKeyFile               clientkeyfile.pem
#ns_param    SockClientProtocols             "SSLv2, SSLv3, TLSv1"
#ns_param    SockClientCipherSuite           
"ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP"
#ns_param    SockClientSessionCache          false
#ns_param    SockClientSessionCacheID        3
#ns_param    SockClientSessionCacheSize      512
#ns_param    SockClientSessionCacheTimeout   300
#ns_param    SockClientPeerVerify            true
#ns_param    SockServerPeerVerifyDepth       3
#ns_param    SockClientCADir                 ca
#ns_param    SockClientCAFile                ca.pem
#ns_param    SockClientTrace                 false
#
## OpenSSL library support:
##ns_param    RandomFile                      /some/file
##ns_param    SeedBytes                       1024
###############################################################################



###############################################################################
#
# Modules to load
#
###############################################################################
ns_section  ns/server/${servername}/modules
#ns_param    tclmodule   tcl                            ;# Loads an additional 
(shared) tcl library in directory $homedir/modules/tcl/tclmodule
ns_param    nsadmin         tcl
ns_param    nsxmlrpc        tcl
#ns_param    nsopenssl   ${bindir}/nsopenssl${ext}
ns_param    nslog       ${bindir}/nslog${ext}
ns_param    nscgi       ${bindir}/nscgi${ext}           ;# Map the paths before using.
ns_param    nsperm      ${bindir}/nsperm${ext}          ;# Edit passwd before using.
ns_param    nsimage     ${bindir}/nsimage${ext}
ns_param    nsrewrite   ${bindir}/nsrewrite${ext}
ns_param    nsxml       ${bindir}/nsxml${ext}
ns_param    nsgd        ${bindir}/nsgd${ext}
ns_param    nscache     ${bindir}/nscache${ext}
ns_param    nssha1      ${bindir}/nssha1${ext}
ns_param    nsencrypt   ${bindir}/nsencrypt${ext}
ns_param    nspasswd    ${bindir}/nspasswd${ext}
ns_param    nsdb        ${bindir}/nsdb${ext}
###############################################################################





#if {$servername == "test8080"} {
################################################################################
#ns_section  ns/server/$servername/module/nssock
#ns_param    hostname                $hostname                                   ;# 
This is not the same as your hostname
#ns_param    address                 $address                                    ;# 
This is not the same as your host addr
#ns_param    bufsize                 [expr 16 * 1024]                            ;# IO 
buffer size
#ns_param    rcvbuf                  0                                           ;# 
Use OS defaults
#ns_param    sndbuf                  0                                           ;# 
Use OS defaults
#ns_param    socktimeout             30                                          ;# 
Connection timeout
#ns_param    sendwait                30                                          ;# 
Timeout for sending of data
#ns_param    recvwait                30                                          ;# 
Timeout for receiving data
#ns_param    closewait               2                                           ;# 
Timeout for closing socket
#ns_param    keepwait                30                                          ;# 
Keepalive inactivity timeout
#ns_param    backlog                 5                                           ;# 5 
pending connections
#ns_param    port                    8080                                        ;# 
Port for HTTP (typically 80)
#ns_param    location                ""                                          ;# 
URL for auto-redirects (trailing slash)
#ns_section  ns/server/${servername}/modules
#ns_param    nssock   ${bindir}/nssock${ext}
################################################################################
################################################################################
#ns_section  ns/server/$servername/module/nssock8080
#ns_param    hostname                $hostname                                   ;# 
This is not the same as your hostname
#ns_param    address                 $address                                    ;# 
This is not the same as your host addr
#ns_param    bufsize                 [expr 16 * 1024]                            ;# IO 
buffer size
#ns_param    rcvbuf                  0                                           ;# 
Use OS defaults
#ns_param    sndbuf                  0                                           ;# 
Use OS defaults
#ns_param    socktimeout             30                                          ;# 
Connection timeout
#ns_param    sendwait                30                                          ;# 
Timeout for sending of data
#ns_param    recvwait                30                                          ;# 
Timeout for receiving data
#ns_param    closewait               2                                           ;# 
Timeout for closing socket
#ns_param    keepwait                30                                          ;# 
Keepalive inactivity timeout
#ns_param    backlog                 5                                           ;# 5 
pending connections
#ns_param    port                    8080                                        ;# 
Port for HTTP (typically 80)
#ns_param    location                ""                                         ;# URL 
for auto-redirects (trailing slash)
#ns_section  ns/server/${servername}/modules
#ns_param    nssock8080              ${bindir}/nssock${ext}
################################################################################
#}

}




###############################################################################
#
# Control port -- nscp
#
# nscp does not load unless nscp_user is a valid user.
#
# nscp: Uncomment the sample password and log in with "nsadmin", password "x",
#       type "ns_crypt newpassword salt" and put the encrypted string below.
#
###############################################################################
set         nscp_port               9999
set         nscp_addr               127.0.0.1
#sample user="nsadmin", pw="x".
set         nscp_user               nsadmin:t2GqvvaiIUbF2:
ns_section  ns/server/${servername}/module/nscp
ns_param    address                 $nscp_addr
ns_param    port                    $nscp_port
ns_param    echopasswd              false
ns_param    cpcmdlogging            true
ns_section  ns/server/${servername}/module/nscp/users
ns_param    user                    $nscp_user
if { $nscp_user != "" } {
    ns_section  ns/server/${servername}/modules
    ns_param     nscp    ${bindir}/nscp${ext}
    if ![string match "127.0.0.1" $nscp_addr] {
            # Anything but 127.0.0.1 is not recommended.
            ns_log warning "nsd.tcl: nscp listening on ${nscp_addr}:${nscp_port}"
    }
} else {
    ns_log warning "nsd.tcl: nscp not loaded -- user/password is not set."
}
###############################################################################
ns_log notice "nsd.tcl: finished reading config file."













> -----Original Message-----
> From: RK [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 19, 2003 6:46 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Re: [AOLSERVER] Fwd: AOLServer 4
> 
> 
> Tim,
> 
> Could you please email me the sample config files you have 
> mentioned in your email? I am new to Aolserver and only now 
> getting the hang of things.
> 
> Thank you,
> Raj
> 



I. To remove yourself from this list:

Send a message to "[EMAIL PROTECTED]"  with the following text in
the BODY of your message:

signoff aolserver

II. For a complete list of listserv options please visit:

http://listserv.aol.com/

III. For more AOLserver information please visit:

http://www.aolserver.com/

Attachment: sample_nsd.tcl
Description: Binary data

Reply via email to