2004-07-22 19:53:07 +02:00
|
|
|
$NetBSD: patch-ac,v 1.2 2004/07/22 17:53:08 ianharding Exp $
|
2004-06-08 22:53:26 +02:00
|
|
|
|
2004-07-22 19:53:07 +02:00
|
|
|
--- sample-config.tcl.orig 2004-03-26 20:58:18.000000000 +0000
|
2004-06-08 22:53:26 +02:00
|
|
|
+++ sample-config.tcl
|
|
|
|
@@ -52,16 +52,16 @@ set httpport 8000
|
|
|
|
set httpsport 8443
|
|
|
|
|
|
|
|
# The hostname and address should be set to actual values.
|
|
|
|
-set hostname [ns_info hostname]
|
|
|
|
-set address [ns_info address]
|
|
|
|
+set hostname localhost
|
|
|
|
+set address 127.0.0.1
|
|
|
|
|
|
|
|
set servername "server1"
|
|
|
|
set serverdesc "Server Name"
|
|
|
|
|
|
|
|
-set homedir [file dirname [ns_info config]]
|
|
|
|
-set bindir [file dirname [ns_info nsd]]
|
2004-07-22 19:53:07 +02:00
|
|
|
+set homedir @PREFIX@
|
2004-06-08 22:53:26 +02:00
|
|
|
+set bindir ${homedir}/bin
|
|
|
|
|
|
|
|
-set pageroot ${homedir}/servers/${servername}/pages
|
|
|
|
+set pageroot ${homedir}/share/nsd/servers/${servername}/pages
|
|
|
|
set directoryfile index.adp,index.html,index.htm,index.xhtml,index.xht
|
|
|
|
|
|
|
|
# nsssl: Only loads if keyfile.pem and certfile.pem exist.
|
|
|
|
@@ -90,7 +90,8 @@ ns_param URLCharset iso8859-1 ;#
|
|
|
|
# is performed.
|
|
|
|
#ns_param PreferredCharsets { utf-8 iso8859-1 } ;# This parameter supports output
|
|
|
|
# encoding arbitration.
|
|
|
|
-
|
2004-07-22 19:53:07 +02:00
|
|
|
+ns_param pidfile "@VARBASE@/run/nsd/${servername}.pid"
|
|
|
|
+ns_param serverlog "@VARBASE@/log/nsd/${servername}.log"
|
2004-06-08 22:53:26 +02:00
|
|
|
#
|
|
|
|
# MIME types.
|
|
|
|
#
|
|
|
|
@@ -202,6 +203,27 @@ ns_param enabledebug false ;#
|
|
|
|
# ADP special pages
|
|
|
|
#ns_param errorpage ${pageroot}/errorpage.adp ;# ADP error page.
|
|
|
|
|
|
|
|
+# Database drivers
|
|
|
|
+#
|
|
|
|
+# Uncomment these sections to use nspostgres to
|
|
|
|
+# access Postgresql databases.
|
|
|
|
+
|
|
|
|
+#ns_section "ns/db/drivers"
|
|
|
|
+#ns_param pgsql nspostgres.so
|
|
|
|
+
|
|
|
|
+#ns_section "ns/db/pools"
|
|
|
|
+#ns_param pgpool postgres_pool
|
|
|
|
+
|
|
|
|
+#ns_section "ns/db/pool/pgpool"
|
|
|
|
+#ns_param driver pgsql
|
|
|
|
+#ns_param datasource localhost:5432:database
|
|
|
|
+#ns_param user user
|
|
|
|
+#ns_param password password
|
|
|
|
+
|
|
|
|
+#ns_section "ns/server/${servername}/db"
|
|
|
|
+#ns_param pools *
|
|
|
|
+#ns_param defaultpool pgpool
|
|
|
|
+
|
|
|
|
|
|
|
|
#
|
|
|
|
# Socket driver module (HTTP) -- nssock
|
2004-07-22 19:53:07 +02:00
|
|
|
@@ -341,8 +363,10 @@ ns_param rollonsignal true ;#
|
2004-06-08 22:53:26 +02:00
|
|
|
ns_param rollhour 0 ;# Time to roll log.
|
|
|
|
ns_param maxbackup 5 ;# Max number to keep around when rolling.
|
|
|
|
ns_param logreqtime true ;# Log the execution time of request
|
|
|
|
+ns_param file "/var/log/nsd/${servername}access.log"
|
|
|
|
|
|
|
|
-
|
|
|
|
+ns_section "ns/server/${servername}/tcl"
|
|
|
|
+ns_param library ${homedir}/share/nsd/modules/tcl
|
|
|
|
#
|
|
|
|
# CGI interface -- nscgi
|
|
|
|
#
|
2004-07-22 19:53:07 +02:00
|
|
|
@@ -362,7 +386,10 @@ ns_section "ns/server/${servername}/modu
|
2004-06-08 22:53:26 +02:00
|
|
|
ns_param nslog ${bindir}/nslog.so
|
|
|
|
#ns_param nscgi ${bindir}/nscgi.so
|
|
|
|
#ns_param nsperm ${bindir}/nsperm.so
|
|
|
|
+
|
|
|
|
+ # Uncomment this line for database access.
|
|
|
|
|
|
|
|
+ #ns_param nsdb ${bindir}/nsdb.so
|
|
|
|
#
|
|
|
|
# nsssl: Only loads if sslcertfile and sslkeyfile exist (see above).
|
|
|
|
#
|