<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://panoptic.com/mediawiki/aolserver/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Visitatvishal</id>
	<title>AOLserver Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://panoptic.com/mediawiki/aolserver/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Visitatvishal"/>
	<link rel="alternate" type="text/html" href="https://panoptic.com/wiki/aolserver/Special:Contributions/Visitatvishal"/>
	<updated>2026-04-09T19:17:42Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/DatabseExampleZeroOrOneRow&amp;diff=7494</id>
		<title>Conf/Examples/DatabseExampleZeroOrOneRow</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/DatabseExampleZeroOrOneRow&amp;diff=7494"/>
		<updated>2012-01-17T15:50:19Z</updated>

		<summary type="html">&lt;p&gt;Visitatvishal: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Conf/Examples/DatabseConfig| part of AOL Database Configuration with PostgreSQL]]&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;html&amp;gt;&lt;br /&gt;
    &amp;lt;head&amp;gt;&amp;lt;title&amp;gt;Testing of Database connection&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&lt;br /&gt;
  &amp;lt;body&amp;gt;  &lt;br /&gt;
  A simple tcl script example of Database Configuration&lt;br /&gt;
  &amp;lt;% &lt;br /&gt;
   set pool &amp;quot;postgres_pool&amp;quot;&lt;br /&gt;
   set sql &amp;quot;select * from users where user_id = 1&amp;quot;    &lt;br /&gt;
   set db [ns_db gethandle $pool]&lt;br /&gt;
   &lt;br /&gt;
   set rec [ns_db 0or1row $db $sql]&lt;br /&gt;
   if { $rec eq &amp;quot;&amp;quot; } {&lt;br /&gt;
      # no rows returned&lt;br /&gt;
   } else {&lt;br /&gt;
     # 1 row returned&lt;br /&gt;
     ns_puts [ns_set array $rec]&lt;br /&gt;
   }&lt;br /&gt;
   ns_db releasehandle $db&lt;br /&gt;
  %&amp;gt;&lt;br /&gt;
  &amp;lt;/body&amp;gt;&lt;br /&gt;
  &amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
------&lt;br /&gt;
&lt;br /&gt;
'''Note'''&lt;br /&gt;
&lt;br /&gt;
This command(ns_db 0or1row) expects the SQL to be a select statement that returns exactly zero or one row. On zero rows, a null string is returned. On one row, a newly allocated ns_set is returned. An error is thrown if more then one row is returned.&lt;/div&gt;</summary>
		<author><name>Visitatvishal</name></author>
		
	</entry>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Accessing_A_Database&amp;diff=7481</id>
		<title>Accessing A Database</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Accessing_A_Database&amp;diff=7481"/>
		<updated>2012-01-17T12:09:54Z</updated>

		<summary type="html">&lt;p&gt;Visitatvishal: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;: ''Note:  This tutorial is still very incomplete as of 16aug2004.''&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
This is the simplest example of how to query a database.  It is not the recommended way to do it.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  &amp;lt;%&lt;br /&gt;
   # set pool &amp;quot;postgres_pool&amp;quot;, defined in aolserver.tcl/config.tcl&lt;br /&gt;
   set pool &amp;quot;postgres_pool&amp;quot; &lt;br /&gt;
   set sql &amp;quot;select * from users&amp;quot;&lt;br /&gt;
   set db [ns_db gethandle $pool]&lt;br /&gt;
   set row [ns_db select $db $sql]&lt;br /&gt;
   while {[ns_db getrow $db $row]} {&lt;br /&gt;
    ns_adp_puts &amp;quot;row: [ns_set array $row]&amp;quot;&lt;br /&gt;
   }	&lt;br /&gt;
   ns_db releasehandle $db&lt;br /&gt;
 %&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Caveats:'''&lt;br /&gt;
&lt;br /&gt;
* If you don't explicitly do an ''[ns_db releasehandle $db]'', that connection will not be returned to the pool, which can lead to accidentally exhausting all pool handles.  This can easily happen if an uncaught Tcl error is thrown in code before the ''[ns_db releasehandle]'' call is made, thus causing it to never get executed.&lt;br /&gt;
&lt;br /&gt;
This isn't true.  All handles are released after the connection has finished processing.  However, you should be aware that a db handle is a precious resource, so before you ''ns_return'' the results of your query, which may potentially take a long time, you should release your handles manually.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
: [[ns_db]], [http://wiki.tcl.tk/13185 Introduction to Database Access With nstcl] on [http://wiki.tcl.tk/ The Tcler's Wiki] ''(the nstcl package reimplements the ns_* functions from AOLserver)''&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation]]&lt;br /&gt;
[[Category:Tutorial]]&lt;/div&gt;</summary>
		<author><name>Visitatvishal</name></author>
		
	</entry>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/DatabseExampleDml&amp;diff=7158</id>
		<title>Conf/Examples/DatabseExampleDml</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/DatabseExampleDml&amp;diff=7158"/>
		<updated>2012-01-13T09:39:48Z</updated>

		<summary type="html">&lt;p&gt;Visitatvishal: Created page with ' part of AOL Database Configuration with PostgreSQL    &amp;lt;html&amp;gt;     &amp;lt;head&amp;gt;&amp;lt;title&amp;gt;Testing of Database connection&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;   &amp;lt;body&amp;gt;     A simple…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Conf/Examples/DatabseConfig| part of AOL Database Configuration with PostgreSQL]]&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;html&amp;gt;&lt;br /&gt;
    &amp;lt;head&amp;gt;&amp;lt;title&amp;gt;Testing of Database connection&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&lt;br /&gt;
  &amp;lt;body&amp;gt;  &lt;br /&gt;
  A simple tcl script example of Database Configuration&lt;br /&gt;
  &amp;lt;% &lt;br /&gt;
   set pool &amp;quot;postgres_pool&amp;quot;&lt;br /&gt;
   &lt;br /&gt;
   set sql &amp;quot;insert into users(name,email,address) &lt;br /&gt;
   values('jain','jain@qcode.co.uk','Main Road')&amp;quot;    &lt;br /&gt;
   &lt;br /&gt;
   set db [ns_db gethandle $pool]&lt;br /&gt;
   ns_db dml $db $sql&lt;br /&gt;
   &lt;br /&gt;
   ns_db releasehandle $db&lt;br /&gt;
  %&amp;gt;&lt;br /&gt;
  &amp;lt;/body&amp;gt;&lt;br /&gt;
  &amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
------&lt;br /&gt;
&lt;br /&gt;
'''Note'''&lt;br /&gt;
&lt;br /&gt;
ns_db dml is normally used for INSERT, UPDATE and DELETE queries.&lt;/div&gt;</summary>
		<author><name>Visitatvishal</name></author>
		
	</entry>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/DatabseExampleZeroOrOneRow&amp;diff=7157</id>
		<title>Conf/Examples/DatabseExampleZeroOrOneRow</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/DatabseExampleZeroOrOneRow&amp;diff=7157"/>
		<updated>2012-01-13T09:34:59Z</updated>

		<summary type="html">&lt;p&gt;Visitatvishal: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Conf/Examples/DatabseConfig| part of AOL Database Configuration with PostgreSQL]]&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;html&amp;gt;&lt;br /&gt;
    &amp;lt;head&amp;gt;&amp;lt;title&amp;gt;Testing of Database connection&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&lt;br /&gt;
  &amp;lt;body&amp;gt;  &lt;br /&gt;
  A simple tcl script example of Database Configuration&lt;br /&gt;
  &amp;lt;% &lt;br /&gt;
   set pool &amp;quot;postgres_pool&amp;quot;&lt;br /&gt;
   set sql &amp;quot;select * from users where user_id = 1&amp;quot;    &lt;br /&gt;
   set db [ns_db gethandle $pool]&lt;br /&gt;
   &lt;br /&gt;
   set rec [ns_db 0or1row $db $sql]&lt;br /&gt;
   ns_puts [ns_set array $rec]&lt;br /&gt;
   ns_db releasehandle $db&lt;br /&gt;
  %&amp;gt;&lt;br /&gt;
  &amp;lt;/body&amp;gt;&lt;br /&gt;
  &amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
------&lt;br /&gt;
&lt;br /&gt;
'''Note'''&lt;br /&gt;
&lt;br /&gt;
This command(ns_db 0or1row) expects the SQL to be a select statement that returns exactly zero or one row. On zero rows, a null string is returned. On one row, a newly allocated ns_set is returned. An error is thrown if more then one row is returned.&lt;/div&gt;</summary>
		<author><name>Visitatvishal</name></author>
		
	</entry>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/DatabseExampleOneRow&amp;diff=7156</id>
		<title>Conf/Examples/DatabseExampleOneRow</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/DatabseExampleOneRow&amp;diff=7156"/>
		<updated>2012-01-13T09:34:33Z</updated>

		<summary type="html">&lt;p&gt;Visitatvishal: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Conf/Examples/DatabseConfig| part of AOL Database Configuration with PostgreSQL]]&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;html&amp;gt;&lt;br /&gt;
    &amp;lt;head&amp;gt;&amp;lt;title&amp;gt;Testing of Database connection&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&lt;br /&gt;
  &amp;lt;body&amp;gt;  &lt;br /&gt;
  A simple tcl script example of Database Configuration&lt;br /&gt;
  &amp;lt;% &lt;br /&gt;
   set pool &amp;quot;postgres_pool&amp;quot;&lt;br /&gt;
   set sql &amp;quot;select * from users where user_id = 1&amp;quot;    &lt;br /&gt;
   set db [ns_db gethandle $pool]&lt;br /&gt;
   &lt;br /&gt;
   set rec [ns_db 1row $db $sql]&lt;br /&gt;
   ns_puts [ns_set array $rec]&lt;br /&gt;
   ns_db releasehandle $db&lt;br /&gt;
  %&amp;gt;&lt;br /&gt;
  &amp;lt;/body&amp;gt;&lt;br /&gt;
  &amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
------&lt;br /&gt;
&lt;br /&gt;
'''Note'''&lt;br /&gt;
&lt;br /&gt;
This command(ns_db 1row) expects the SQL to be a select statement that returns exactly one row and returns that row as an ns_set. An error is returned if zero or more than one row is returned.&lt;/div&gt;</summary>
		<author><name>Visitatvishal</name></author>
		
	</entry>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/DatabseExampleZeroOrOneRow&amp;diff=7111</id>
		<title>Conf/Examples/DatabseExampleZeroOrOneRow</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/DatabseExampleZeroOrOneRow&amp;diff=7111"/>
		<updated>2012-01-12T12:19:19Z</updated>

		<summary type="html">&lt;p&gt;Visitatvishal: Created page with ' part of AOL Database Configuration with PostgreSQL    &amp;lt;html&amp;gt;     &amp;lt;head&amp;gt;&amp;lt;title&amp;gt;Testing of Database connection&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;   &amp;lt;body&amp;gt;     A simple…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Conf/Examples/DatabseConfig| part of AOL Database Configuration with PostgreSQL]]&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;html&amp;gt;&lt;br /&gt;
    &amp;lt;head&amp;gt;&amp;lt;title&amp;gt;Testing of Database connection&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&lt;br /&gt;
  &amp;lt;body&amp;gt;  &lt;br /&gt;
  A simple tcl script example of Database Configuration&lt;br /&gt;
  &amp;lt;% &lt;br /&gt;
   set pool &amp;quot;postgres_pool&amp;quot;&lt;br /&gt;
   set sql &amp;quot;select * from users&amp;quot;    &lt;br /&gt;
   set db [ns_db gethandle $pool]&lt;br /&gt;
   &lt;br /&gt;
   set rec [ns_db 0or1row $db $sql]&lt;br /&gt;
   ns_puts [ns_set array $rec]&lt;br /&gt;
   ns_db releasehandle $db&lt;br /&gt;
  %&amp;gt;&lt;br /&gt;
  &amp;lt;/body&amp;gt;&lt;br /&gt;
  &amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
------&lt;br /&gt;
&lt;br /&gt;
'''Note'''&lt;br /&gt;
&lt;br /&gt;
This command(ns_db 0or1row) expects the SQL to be a select statement that returns exactly zero or one row. On zero rows, a null string is returned. On one row, a newly allocated ns_set is returned. An error is thrown if more then one row is returned.&lt;/div&gt;</summary>
		<author><name>Visitatvishal</name></author>
		
	</entry>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/DatabseExampleOneRow&amp;diff=7110</id>
		<title>Conf/Examples/DatabseExampleOneRow</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/DatabseExampleOneRow&amp;diff=7110"/>
		<updated>2012-01-12T12:18:13Z</updated>

		<summary type="html">&lt;p&gt;Visitatvishal: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Conf/Examples/DatabseConfig| part of AOL Database Configuration with PostgreSQL]]&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;html&amp;gt;&lt;br /&gt;
    &amp;lt;head&amp;gt;&amp;lt;title&amp;gt;Testing of Database connection&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&lt;br /&gt;
  &amp;lt;body&amp;gt;  &lt;br /&gt;
  A simple tcl script example of Database Configuration&lt;br /&gt;
  &amp;lt;% &lt;br /&gt;
   set pool &amp;quot;postgres_pool&amp;quot;&lt;br /&gt;
   set sql &amp;quot;select * from users&amp;quot;    &lt;br /&gt;
   set db [ns_db gethandle $pool]&lt;br /&gt;
   &lt;br /&gt;
   set rec [ns_db 1row $db $sql]&lt;br /&gt;
   ns_puts [ns_set array $rec]&lt;br /&gt;
   ns_db releasehandle $db&lt;br /&gt;
  %&amp;gt;&lt;br /&gt;
  &amp;lt;/body&amp;gt;&lt;br /&gt;
  &amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
------&lt;br /&gt;
&lt;br /&gt;
'''Note'''&lt;br /&gt;
&lt;br /&gt;
This command(ns_db 1row) expects the SQL to be a select statement that returns exactly one row and returns that row as an ns_set. An error is returned if zero or more than one row is returned.&lt;/div&gt;</summary>
		<author><name>Visitatvishal</name></author>
		
	</entry>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/DatabseExampleOneRow&amp;diff=7109</id>
		<title>Conf/Examples/DatabseExampleOneRow</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/DatabseExampleOneRow&amp;diff=7109"/>
		<updated>2012-01-12T12:15:33Z</updated>

		<summary type="html">&lt;p&gt;Visitatvishal: Created page with ' part of AOL Database Configuration with PostgreSQL    &amp;lt;html&amp;gt;     &amp;lt;head&amp;gt;&amp;lt;title&amp;gt;Testing of Database connection&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;   &amp;lt;body&amp;gt;     A simple…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Conf/Examples/DatabseConfig| part of AOL Database Configuration with PostgreSQL]]&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;html&amp;gt;&lt;br /&gt;
    &amp;lt;head&amp;gt;&amp;lt;title&amp;gt;Testing of Database connection&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&lt;br /&gt;
  &amp;lt;body&amp;gt;  &lt;br /&gt;
  A simple tcl script example of Database Configuration&lt;br /&gt;
  &amp;lt;% &lt;br /&gt;
   set pool &amp;quot;postgres_pool&amp;quot;&lt;br /&gt;
   set sql &amp;quot;select * from users&amp;quot;    &lt;br /&gt;
   set db [ns_db gethandle $pool]&lt;br /&gt;
   &lt;br /&gt;
   set rec [ns_db 1row $db $sql]&lt;br /&gt;
   ns_puts [ns_set array $rec]&lt;br /&gt;
   ns_db releasehandle $db&lt;br /&gt;
  %&amp;gt;&lt;br /&gt;
  &amp;lt;/body&amp;gt;&lt;br /&gt;
  &amp;lt;/html&amp;gt;&lt;/div&gt;</summary>
		<author><name>Visitatvishal</name></author>
		
	</entry>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples&amp;diff=7108</id>
		<title>Conf/Examples</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples&amp;diff=7108"/>
		<updated>2012-01-12T12:13:37Z</updated>

		<summary type="html">&lt;p&gt;Visitatvishal: /* AOLServer Configuration Examples */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= AOLServer Configuration Examples =&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/Minimal | Minimal Configuration]] - the bare minimum&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/VirtualHosts | Virtual Hosts]] - listen on the same port for several hostnames as per HTTP 1.1&lt;br /&gt;
* [[Conf/Examples/Servers | Minimal Config for 2 Servers]] - 2 virtual servers listening on 2 ports.&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/Full | Full Configuration]]&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/CgiConfig | CGI Configuration]]&lt;br /&gt;
** [[Conf/Examples/CgiConfig/TclExample | A simple tcl CGI script example]]&lt;br /&gt;
** [[Conf/Examples/CgiConfig/TclParamExample | A tcl CGI script with GET parameters example]]&lt;br /&gt;
**[[Conf/Examples/CgiConfig/ShExample | A simple shell script example]]&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/AdpConfig | ADP Configuration]]&lt;br /&gt;
**[[Conf/Examples/AdpExample | A simple tcl script example of Adp]]&lt;br /&gt;
**[[Conf/Examples/AdpParamExample | A simple tcl script example of Adp with GET parameters]]&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/TclConfig | TCL Library Configuration]]&lt;br /&gt;
**[[Conf/Examples/TclExample | A simple tcl script using Tcl Library]]&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/DatabseConfig | AOL Database Configuration with PostgreSQL]]&lt;br /&gt;
**[[Conf/Examples/DatabseExample | An example script(.adp) of database connection]]&lt;br /&gt;
**[[Conf/Examples/DatabseExampleOneRow | An example script(.adp) of database connection using ns_db 1row]]&lt;br /&gt;
**[[Conf/Examples/DatabseExampleZeroOrOneRow | An example script(.adp) of database connection using ns_db 0or1row]]&lt;br /&gt;
**[[Conf/Examples/DatabseExampleDml | An example script(.adp) of database connection using ns_db dml]]&lt;/div&gt;</summary>
		<author><name>Visitatvishal</name></author>
		
	</entry>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/DatabseExample&amp;diff=7069</id>
		<title>Conf/Examples/DatabseExample</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/DatabseExample&amp;diff=7069"/>
		<updated>2012-01-11T13:54:15Z</updated>

		<summary type="html">&lt;p&gt;Visitatvishal: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Conf/Examples/DatabseConfig| part of AOL Database Configuration with PostgreSQL]]&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;html&amp;gt;&lt;br /&gt;
    &amp;lt;head&amp;gt;&amp;lt;title&amp;gt;Testing of Database connection&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&lt;br /&gt;
  &amp;lt;body&amp;gt;  &lt;br /&gt;
  A simple tcl script example of Database Configuration&lt;br /&gt;
  &amp;lt;% &lt;br /&gt;
   set pool &amp;quot;postgres_pool&amp;quot;&lt;br /&gt;
   set sql &amp;quot;select * from users&amp;quot;&lt;br /&gt;
   set db [ns_db gethandle $pool]&lt;br /&gt;
   set row [ns_db select $db $sql]&lt;br /&gt;
   while {[ns_db getrow $db $row]} {&lt;br /&gt;
    ns_adp_puts &amp;quot;row: [ns_set array $row]&amp;quot;&lt;br /&gt;
   }	&lt;br /&gt;
   ns_db releasehandle $db&lt;br /&gt;
  %&amp;gt;&lt;br /&gt;
  &amp;lt;/body&amp;gt;&lt;br /&gt;
  &amp;lt;/html&amp;gt;&lt;/div&gt;</summary>
		<author><name>Visitatvishal</name></author>
		
	</entry>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/DatabseExample&amp;diff=7068</id>
		<title>Conf/Examples/DatabseExample</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/DatabseExample&amp;diff=7068"/>
		<updated>2012-01-11T13:53:38Z</updated>

		<summary type="html">&lt;p&gt;Visitatvishal: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Conf/Examples/DatabseConfig| part of AOL database connection Examples]]&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;html&amp;gt;&lt;br /&gt;
    &amp;lt;head&amp;gt;&amp;lt;title&amp;gt;Testing of Database connection&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&lt;br /&gt;
  &amp;lt;body&amp;gt;  &lt;br /&gt;
  A simple tcl script example of Database Configuration&lt;br /&gt;
  &amp;lt;% &lt;br /&gt;
   set pool &amp;quot;postgres_pool&amp;quot;&lt;br /&gt;
   set sql &amp;quot;select * from users&amp;quot;&lt;br /&gt;
   set db [ns_db gethandle $pool]&lt;br /&gt;
   set row [ns_db select $db $sql]&lt;br /&gt;
   while {[ns_db getrow $db $row]} {&lt;br /&gt;
    ns_adp_puts &amp;quot;row: [ns_set array $row]&amp;quot;&lt;br /&gt;
   }	&lt;br /&gt;
   ns_db releasehandle $db&lt;br /&gt;
  %&amp;gt;&lt;br /&gt;
  &amp;lt;/body&amp;gt;&lt;br /&gt;
  &amp;lt;/html&amp;gt;&lt;/div&gt;</summary>
		<author><name>Visitatvishal</name></author>
		
	</entry>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/DatabseExample&amp;diff=7067</id>
		<title>Conf/Examples/DatabseExample</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/DatabseExample&amp;diff=7067"/>
		<updated>2012-01-11T13:53:06Z</updated>

		<summary type="html">&lt;p&gt;Visitatvishal: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Conf/Examples/AdpConfig| part of AOL database connection Examples]]&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;html&amp;gt;&lt;br /&gt;
    &amp;lt;head&amp;gt;&amp;lt;title&amp;gt;Testing of Database connection&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&lt;br /&gt;
  &amp;lt;body&amp;gt;  &lt;br /&gt;
  A simple tcl script example of Database Configuration&lt;br /&gt;
  &amp;lt;% &lt;br /&gt;
   set pool &amp;quot;postgres_pool&amp;quot;&lt;br /&gt;
   set sql &amp;quot;select * from users&amp;quot;&lt;br /&gt;
   set db [ns_db gethandle $pool]&lt;br /&gt;
   set row [ns_db select $db $sql]&lt;br /&gt;
   while {[ns_db getrow $db $row]} {&lt;br /&gt;
    ns_adp_puts &amp;quot;row: [ns_set array $row]&amp;quot;&lt;br /&gt;
   }	&lt;br /&gt;
   ns_db releasehandle $db&lt;br /&gt;
  %&amp;gt;&lt;br /&gt;
  &amp;lt;/body&amp;gt;&lt;br /&gt;
  &amp;lt;/html&amp;gt;&lt;/div&gt;</summary>
		<author><name>Visitatvishal</name></author>
		
	</entry>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/DatabseExample&amp;diff=7066</id>
		<title>Conf/Examples/DatabseExample</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/DatabseExample&amp;diff=7066"/>
		<updated>2012-01-11T13:51:13Z</updated>

		<summary type="html">&lt;p&gt;Visitatvishal: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;  &amp;lt;html&amp;gt;&lt;br /&gt;
    &amp;lt;head&amp;gt;&amp;lt;title&amp;gt;Testing of Database connection&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&lt;br /&gt;
  &amp;lt;body&amp;gt;  &lt;br /&gt;
  A simple tcl script example of Database Configuration&lt;br /&gt;
  &amp;lt;% &lt;br /&gt;
   set pool &amp;quot;postgres_pool&amp;quot;&lt;br /&gt;
   set sql &amp;quot;select * from users&amp;quot;&lt;br /&gt;
   set db [ns_db gethandle $pool]&lt;br /&gt;
   set row [ns_db select $db $sql]&lt;br /&gt;
   while {[ns_db getrow $db $row]} {&lt;br /&gt;
    ns_adp_puts &amp;quot;row: [ns_set array $row]&amp;quot;&lt;br /&gt;
   }	&lt;br /&gt;
   ns_db releasehandle $db&lt;br /&gt;
  %&amp;gt;&lt;br /&gt;
  &amp;lt;/body&amp;gt;&lt;br /&gt;
  &amp;lt;/html&amp;gt;&lt;/div&gt;</summary>
		<author><name>Visitatvishal</name></author>
		
	</entry>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/DatabseConfig&amp;diff=7065</id>
		<title>Conf/Examples/DatabseConfig</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/DatabseConfig&amp;diff=7065"/>
		<updated>2012-01-11T13:50:16Z</updated>

		<summary type="html">&lt;p&gt;Visitatvishal: /* TCL Library Configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= AOL Database Configuration with PostgreSQL = &lt;br /&gt;
[[Conf/Examples | part of AOLserver Config Examples]]&lt;br /&gt;
&lt;br /&gt;
'''The config file'''&lt;br /&gt;
&lt;br /&gt;
 # Global Parameters&lt;br /&gt;
 ns_section ns/parameters&lt;br /&gt;
 ns_param home /usr/lib/aolserver4&lt;br /&gt;
 ns_param servername &amp;quot;Main AOLserver Process&amp;quot;&lt;br /&gt;
 ns_param serverlog /var/log/aolserver4/virtual-hosts.log&lt;br /&gt;
 ns_param pidfile /var/run/aolserver4/virtual-hosts.pid&lt;br /&gt;
&lt;br /&gt;
 ns_section ns/servers&lt;br /&gt;
 ns_param   server1 &amp;quot;Website 1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 # virtual server 1 &lt;br /&gt;
 ns_section ns/server/server1&lt;br /&gt;
 ns_param   directoryfile   index.html&lt;br /&gt;
 ns_param   pageroot        /var/www/vhost1&lt;br /&gt;
&lt;br /&gt;
 # modules for server1&lt;br /&gt;
 ns_section ns/server/server1/modules&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   nscp          nscp.so&lt;br /&gt;
   ns_param   nsdb          nsdb.so; # Load the generic database module&lt;br /&gt;
&lt;br /&gt;
 # Configure nssock&lt;br /&gt;
 ns_section ns/server/server1/module/nssock&lt;br /&gt;
   ns_param port 80&lt;br /&gt;
   ns_param address 127.0.0.1&lt;br /&gt;
&lt;br /&gt;
 # Configure server1 accesslog&lt;br /&gt;
   ns_section ns/server/server1/module/nslog&lt;br /&gt;
   ns_param   file            /var/log/aolserver4/example1.com.access.log&lt;br /&gt;
&lt;br /&gt;
 # Database configuration&lt;br /&gt;
   ns_section &amp;quot;ns/db/drivers&amp;quot;&lt;br /&gt;
   ns_param postgres_driver nspostgres.so&lt;br /&gt;
   ns_section &amp;quot;ns/db/pools&amp;quot;&lt;br /&gt;
   ns_param postgres_pool &amp;quot;Postgres Pool&amp;quot;&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  127.0.0.1:5432:mydb&lt;br /&gt;
   ns_param user        postgres&lt;br /&gt;
   ns_param password    pass@12345&lt;br /&gt;
   ns_param connections 1&lt;br /&gt;
   ns_param logsqlerrors true&lt;br /&gt;
   ns_param verbose      false&lt;br /&gt;
  &lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Conf/Examples/DatabseExample | An example script(.adp) of database connection]]&lt;/div&gt;</summary>
		<author><name>Visitatvishal</name></author>
		
	</entry>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples&amp;diff=7064</id>
		<title>Conf/Examples</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples&amp;diff=7064"/>
		<updated>2012-01-11T13:49:51Z</updated>

		<summary type="html">&lt;p&gt;Visitatvishal: /* AOLServer Configuration Examples */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= AOLServer Configuration Examples =&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/Minimal | Minimal Configuration]] - the bare minimum&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/VirtualHosts | Virtual Hosts]] - listen on the same port for several hostnames as per HTTP 1.1&lt;br /&gt;
* [[Conf/Examples/Servers | Minimal Config for 2 Servers]] - 2 virtual servers listening on 2 ports.&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/Full | Full Configuration]]&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/CgiConfig | CGI Configuration]]&lt;br /&gt;
** [[Conf/Examples/CgiConfig/TclExample | A simple tcl CGI script example]]&lt;br /&gt;
** [[Conf/Examples/CgiConfig/TclParamExample | A tcl CGI script with GET parameters example]]&lt;br /&gt;
**[[Conf/Examples/CgiConfig/ShExample | A simple shell script example]]&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/AdpConfig | ADP Configuration]]&lt;br /&gt;
**[[Conf/Examples/AdpExample | A simple tcl script example of Adp]]&lt;br /&gt;
**[[Conf/Examples/AdpParamExample | A simple tcl script example of Adp with GET parameters]]&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/TclConfig | TCL Library Configuration]]&lt;br /&gt;
**[[Conf/Examples/TclExample | A simple tcl script using Tcl Library]]&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/DatabseConfig | AOL Database Configuration with PostgreSQL]]&lt;br /&gt;
**[[Conf/Examples/DatabseExample | An example script(.adp) of database connection]]&lt;/div&gt;</summary>
		<author><name>Visitatvishal</name></author>
		
	</entry>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/DatabseConfig&amp;diff=7063</id>
		<title>Conf/Examples/DatabseConfig</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/DatabseConfig&amp;diff=7063"/>
		<updated>2012-01-11T13:49:13Z</updated>

		<summary type="html">&lt;p&gt;Visitatvishal: /* TCL Library Configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= TCL Library Configuration = &lt;br /&gt;
[[Conf/Examples | part of AOLserver Config Examples]]&lt;br /&gt;
&lt;br /&gt;
'''The config file'''&lt;br /&gt;
&lt;br /&gt;
 # Global Parameters&lt;br /&gt;
 ns_section ns/parameters&lt;br /&gt;
 ns_param home /usr/lib/aolserver4&lt;br /&gt;
 ns_param servername &amp;quot;Main AOLserver Process&amp;quot;&lt;br /&gt;
 ns_param serverlog /var/log/aolserver4/virtual-hosts.log&lt;br /&gt;
 ns_param pidfile /var/run/aolserver4/virtual-hosts.pid&lt;br /&gt;
&lt;br /&gt;
 ns_section ns/servers&lt;br /&gt;
 ns_param   server1 &amp;quot;Website 1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 # virtual server 1 &lt;br /&gt;
 ns_section ns/server/server1&lt;br /&gt;
 ns_param   directoryfile   index.html&lt;br /&gt;
 ns_param   pageroot        /var/www/vhost1&lt;br /&gt;
&lt;br /&gt;
 # modules for server1&lt;br /&gt;
 ns_section ns/server/server1/modules&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   nscp          nscp.so&lt;br /&gt;
   ns_param   nsdb          nsdb.so; # Load the generic database module&lt;br /&gt;
&lt;br /&gt;
 # Configure nssock&lt;br /&gt;
 ns_section ns/server/server1/module/nssock&lt;br /&gt;
   ns_param port 80&lt;br /&gt;
   ns_param address 127.0.0.1&lt;br /&gt;
&lt;br /&gt;
 # Configure server1 accesslog&lt;br /&gt;
   ns_section ns/server/server1/module/nslog&lt;br /&gt;
   ns_param   file            /var/log/aolserver4/example1.com.access.log&lt;br /&gt;
&lt;br /&gt;
 # Database configuration&lt;br /&gt;
   ns_section &amp;quot;ns/db/drivers&amp;quot;&lt;br /&gt;
   ns_param postgres_driver nspostgres.so&lt;br /&gt;
   ns_section &amp;quot;ns/db/pools&amp;quot;&lt;br /&gt;
   ns_param postgres_pool &amp;quot;Postgres Pool&amp;quot;&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  127.0.0.1:5432:mydb&lt;br /&gt;
   ns_param user        postgres&lt;br /&gt;
   ns_param password    pass@12345&lt;br /&gt;
   ns_param connections 1&lt;br /&gt;
   ns_param logsqlerrors true&lt;br /&gt;
   ns_param verbose      false&lt;br /&gt;
  &lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Conf/Examples/DatabseExample | An example script(.adp) of database connection]]&lt;/div&gt;</summary>
		<author><name>Visitatvishal</name></author>
		
	</entry>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/DatabseConfig&amp;diff=7062</id>
		<title>Conf/Examples/DatabseConfig</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/DatabseConfig&amp;diff=7062"/>
		<updated>2012-01-11T13:47:58Z</updated>

		<summary type="html">&lt;p&gt;Visitatvishal: /* TCL Library Configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= TCL Library Configuration = &lt;br /&gt;
[[Conf/Examples | part of AOLserver Config Examples]]&lt;br /&gt;
&lt;br /&gt;
'''The config file'''&lt;br /&gt;
&lt;br /&gt;
 # Global Parameters&lt;br /&gt;
 ns_section ns/parameters&lt;br /&gt;
 ns_param home /usr/lib/aolserver4&lt;br /&gt;
 ns_param servername &amp;quot;Main AOLserver Process&amp;quot;&lt;br /&gt;
 ns_param serverlog /var/log/aolserver4/virtual-hosts.log&lt;br /&gt;
 ns_param pidfile /var/run/aolserver4/virtual-hosts.pid&lt;br /&gt;
&lt;br /&gt;
 ns_section ns/servers&lt;br /&gt;
 ns_param   server1 &amp;quot;Website 1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 # virtual server 1 &lt;br /&gt;
 ns_section ns/server/server1&lt;br /&gt;
 ns_param   directoryfile   index.html&lt;br /&gt;
 ns_param   pageroot        /var/www/vhost1&lt;br /&gt;
&lt;br /&gt;
 # modules for server1&lt;br /&gt;
 ns_section ns/server/server1/modules&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   nscp          nscp.so&lt;br /&gt;
   ns_param   nsdb          nsdb.so; # Load the generic database module&lt;br /&gt;
&lt;br /&gt;
 # Configure nssock&lt;br /&gt;
 ns_section ns/server/server1/module/nssock&lt;br /&gt;
   ns_param port 80&lt;br /&gt;
   ns_param address 127.0.0.1&lt;br /&gt;
&lt;br /&gt;
 # Configure server1 accesslog&lt;br /&gt;
   ns_section ns/server/server1/module/nslog&lt;br /&gt;
   ns_param   file            /var/log/aolserver4/example1.com.access.log&lt;br /&gt;
&lt;br /&gt;
 # Database configuration&lt;br /&gt;
   ns_section &amp;quot;ns/db/drivers&amp;quot;&lt;br /&gt;
   ns_param postgres_driver nspostgres.so&lt;br /&gt;
   ns_section &amp;quot;ns/db/pools&amp;quot;&lt;br /&gt;
   ns_param postgres_pool &amp;quot;Postgres Pool&amp;quot;&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  127.0.0.1:5432:mydb&lt;br /&gt;
   ns_param user        postgres&lt;br /&gt;
   ns_param password    pass@12345&lt;br /&gt;
   ns_param connections 1&lt;br /&gt;
   ns_param logsqlerrors true&lt;br /&gt;
   ns_param verbose      false&lt;br /&gt;
  &lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Conf/Examples/DatabseExample | A simple script(.adp) example]]&lt;/div&gt;</summary>
		<author><name>Visitatvishal</name></author>
		
	</entry>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples&amp;diff=7061</id>
		<title>Conf/Examples</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples&amp;diff=7061"/>
		<updated>2012-01-11T13:47:18Z</updated>

		<summary type="html">&lt;p&gt;Visitatvishal: /* AOLServer Configuration Examples */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= AOLServer Configuration Examples =&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/Minimal | Minimal Configuration]] - the bare minimum&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/VirtualHosts | Virtual Hosts]] - listen on the same port for several hostnames as per HTTP 1.1&lt;br /&gt;
* [[Conf/Examples/Servers | Minimal Config for 2 Servers]] - 2 virtual servers listening on 2 ports.&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/Full | Full Configuration]]&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/CgiConfig | CGI Configuration]]&lt;br /&gt;
** [[Conf/Examples/CgiConfig/TclExample | A simple tcl CGI script example]]&lt;br /&gt;
** [[Conf/Examples/CgiConfig/TclParamExample | A tcl CGI script with GET parameters example]]&lt;br /&gt;
**[[Conf/Examples/CgiConfig/ShExample | A simple shell script example]]&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/AdpConfig | ADP Configuration]]&lt;br /&gt;
**[[Conf/Examples/AdpExample | A simple tcl script example of Adp]]&lt;br /&gt;
**[[Conf/Examples/AdpParamExample | A simple tcl script example of Adp with GET parameters]]&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/TclConfig | TCL Library Configuration]]&lt;br /&gt;
**[[Conf/Examples/TclExample | A simple tcl script using Tcl Library]]&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/DatabseConfig | AOL Database Configuration with PostgreSQL]]&lt;br /&gt;
**[[Conf/Examples/DatabseExample | A simple script(.adp) example]]&lt;/div&gt;</summary>
		<author><name>Visitatvishal</name></author>
		
	</entry>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples&amp;diff=7060</id>
		<title>Conf/Examples</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples&amp;diff=7060"/>
		<updated>2012-01-11T13:46:39Z</updated>

		<summary type="html">&lt;p&gt;Visitatvishal: /* AOLServer Configuration Examples */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= AOLServer Configuration Examples =&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/Minimal | Minimal Configuration]] - the bare minimum&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/VirtualHosts | Virtual Hosts]] - listen on the same port for several hostnames as per HTTP 1.1&lt;br /&gt;
* [[Conf/Examples/Servers | Minimal Config for 2 Servers]] - 2 virtual servers listening on 2 ports.&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/Full | Full Configuration]]&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/CgiConfig | CGI Configuration]]&lt;br /&gt;
** [[Conf/Examples/CgiConfig/TclExample | A simple tcl CGI script example]]&lt;br /&gt;
** [[Conf/Examples/CgiConfig/TclParamExample | A tcl CGI script with GET parameters example]]&lt;br /&gt;
**[[Conf/Examples/CgiConfig/ShExample | A simple shell script example]]&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/AdpConfig | ADP Configuration]]&lt;br /&gt;
**[[Conf/Examples/AdpExample | A simple tcl script example of Adp]]&lt;br /&gt;
**[[Conf/Examples/AdpParamExample | A simple tcl script example of Adp with GET parameters]]&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/TclConfig | TCL Library Configuration]]&lt;br /&gt;
**[[Conf/Examples/TclExample | A simple tcl script using Tcl Library]]&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/DatabseConfig | AOL Database Configuration with PostgreSQL]]&lt;br /&gt;
**[[Conf/Examples/DatabseExample | A simple tcl script example of Database Configuration]]&lt;/div&gt;</summary>
		<author><name>Visitatvishal</name></author>
		
	</entry>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples&amp;diff=7059</id>
		<title>Conf/Examples</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples&amp;diff=7059"/>
		<updated>2012-01-11T13:46:10Z</updated>

		<summary type="html">&lt;p&gt;Visitatvishal: /* AOLServer Configuration Examples */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= AOLServer Configuration Examples =&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/Minimal | Minimal Configuration]] - the bare minimum&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/VirtualHosts | Virtual Hosts]] - listen on the same port for several hostnames as per HTTP 1.1&lt;br /&gt;
* [[Conf/Examples/Servers | Minimal Config for 2 Servers]] - 2 virtual servers listening on 2 ports.&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/Full | Full Configuration]]&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/CgiConfig | CGI Configuration]]&lt;br /&gt;
** [[Conf/Examples/CgiConfig/TclExample | A simple tcl CGI script example]]&lt;br /&gt;
** [[Conf/Examples/CgiConfig/TclParamExample | A tcl CGI script with GET parameters example]]&lt;br /&gt;
**[[Conf/Examples/CgiConfig/ShExample | A simple shell script example]]&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/AdpConfig | ADP Configuration]]&lt;br /&gt;
**[[Conf/Examples/AdpExample | A simple tcl script example of Adp]]&lt;br /&gt;
**[[Conf/Examples/AdpParamExample | A simple tcl script example of Adp with GET parameters]]&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/TclConfig | TCL Library Configuration]]&lt;br /&gt;
**[[Conf/Examples/TclExample | A simple tcl script using Tcl Library]]&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/DatabseConfig | AOL Database Configuration with Postgres]]&lt;br /&gt;
**[[Conf/Examples/DatabseExample | A simple tcl script example of Database Configuration]]&lt;/div&gt;</summary>
		<author><name>Visitatvishal</name></author>
		
	</entry>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples&amp;diff=7058</id>
		<title>Conf/Examples</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples&amp;diff=7058"/>
		<updated>2012-01-11T13:45:48Z</updated>

		<summary type="html">&lt;p&gt;Visitatvishal: /* AOLServer Configuration Examples */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= AOLServer Configuration Examples =&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/Minimal | Minimal Configuration]] - the bare minimum&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/VirtualHosts | Virtual Hosts]] - listen on the same port for several hostnames as per HTTP 1.1&lt;br /&gt;
* [[Conf/Examples/Servers | Minimal Config for 2 Servers]] - 2 virtual servers listening on 2 ports.&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/Full | Full Configuration]]&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/CgiConfig | CGI Configuration]]&lt;br /&gt;
** [[Conf/Examples/CgiConfig/TclExample | A simple tcl CGI script example]]&lt;br /&gt;
** [[Conf/Examples/CgiConfig/TclParamExample | A tcl CGI script with GET parameters example]]&lt;br /&gt;
**[[Conf/Examples/CgiConfig/ShExample | A simple shell script example]]&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/AdpConfig | ADP Configuration]]&lt;br /&gt;
**[[Conf/Examples/AdpExample | A simple tcl script example of Adp]]&lt;br /&gt;
**[[Conf/Examples/AdpParamExample | A simple tcl script example of Adp with GET parameters]]&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/TclConfig | TCL Library Configuration]]&lt;br /&gt;
**[[Conf/Examples/TclExample | A simple tcl script using Tcl Library]]&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/DatabseConfig | AOL Server Database Configuration with Postgres]]&lt;br /&gt;
**[[Conf/Examples/DatabseExample | A simple tcl script example of Database Configuration]]&lt;/div&gt;</summary>
		<author><name>Visitatvishal</name></author>
		
	</entry>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/DatabseConfig&amp;diff=7049</id>
		<title>Conf/Examples/DatabseConfig</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/DatabseConfig&amp;diff=7049"/>
		<updated>2012-01-11T09:36:12Z</updated>

		<summary type="html">&lt;p&gt;Visitatvishal: /* TCL Library Configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= TCL Library Configuration = &lt;br /&gt;
[[Conf/Examples | part of AOLserver Config Examples]]&lt;br /&gt;
&lt;br /&gt;
'''The config file'''&lt;br /&gt;
&lt;br /&gt;
 # Global Parameters&lt;br /&gt;
 ns_section ns/parameters&lt;br /&gt;
 ns_param home /usr/lib/aolserver4&lt;br /&gt;
 ns_param servername &amp;quot;Main AOLserver Process&amp;quot;&lt;br /&gt;
 ns_param serverlog /var/log/aolserver4/virtual-hosts.log&lt;br /&gt;
 ns_param pidfile /var/run/aolserver4/virtual-hosts.pid&lt;br /&gt;
&lt;br /&gt;
 ns_section ns/servers&lt;br /&gt;
 ns_param   server1 &amp;quot;Website 1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 # virtual server 1 &lt;br /&gt;
 ns_section ns/server/server1&lt;br /&gt;
 ns_param   directoryfile   index.html&lt;br /&gt;
 ns_param   pageroot        /var/www/vhost1&lt;br /&gt;
&lt;br /&gt;
 # modules for server1&lt;br /&gt;
 ns_section ns/server/server1/modules&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   nscp          nscp.so&lt;br /&gt;
   ns_param   nsdb          nsdb.so; # Load the generic database module&lt;br /&gt;
&lt;br /&gt;
 # Configure nssock&lt;br /&gt;
 ns_section ns/server/server1/module/nssock&lt;br /&gt;
   ns_param port 80&lt;br /&gt;
   ns_param address 127.0.0.1&lt;br /&gt;
&lt;br /&gt;
 # Configure server1 accesslog&lt;br /&gt;
   ns_section ns/server/server1/module/nslog&lt;br /&gt;
   ns_param   file            /var/log/aolserver4/example1.com.access.log&lt;br /&gt;
&lt;br /&gt;
 # Database configuration&lt;br /&gt;
   ns_section &amp;quot;ns/db/drivers&amp;quot;&lt;br /&gt;
   ns_param postgres_driver nspostgres.so&lt;br /&gt;
   ns_section &amp;quot;ns/db/pools&amp;quot;&lt;br /&gt;
   ns_param postgres_pool &amp;quot;Postgres Pool&amp;quot;&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  127.0.0.1:5432:mydb&lt;br /&gt;
   ns_param user        postgres&lt;br /&gt;
   ns_param password    pass@12345&lt;br /&gt;
   ns_param connections 1&lt;br /&gt;
   ns_param logsqlerrors true&lt;br /&gt;
   ns_param verbose      false&lt;br /&gt;
  &lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Conf/Examples/DatabseExample | A simple tcl script example of Database Configuration]]&lt;/div&gt;</summary>
		<author><name>Visitatvishal</name></author>
		
	</entry>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/DatabseConfig&amp;diff=7048</id>
		<title>Conf/Examples/DatabseConfig</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/DatabseConfig&amp;diff=7048"/>
		<updated>2012-01-11T09:34:44Z</updated>

		<summary type="html">&lt;p&gt;Visitatvishal: /* TCL Library Configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= TCL Library Configuration = &lt;br /&gt;
[[Conf/Examples | part of AOLserver Config Examples]]&lt;br /&gt;
&lt;br /&gt;
'''The config file'''&lt;br /&gt;
&lt;br /&gt;
 # Global Parameters&lt;br /&gt;
 ns_section ns/parameters&lt;br /&gt;
 ns_param home /usr/lib/aolserver4&lt;br /&gt;
 ns_param servername &amp;quot;Main AOLserver Process&amp;quot;&lt;br /&gt;
 ns_param serverlog /var/log/aolserver4/virtual-hosts.log&lt;br /&gt;
 ns_param pidfile /var/run/aolserver4/virtual-hosts.pid&lt;br /&gt;
&lt;br /&gt;
 ns_section ns/servers&lt;br /&gt;
 ns_param   server1 &amp;quot;Website 1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 # virtual server 1 &lt;br /&gt;
 ns_section ns/server/server1&lt;br /&gt;
 ns_param   directoryfile   index.html&lt;br /&gt;
 ns_param   pageroot        /var/www/vhost1&lt;br /&gt;
&lt;br /&gt;
 # modules for server1&lt;br /&gt;
 ns_section ns/server/server1/modules&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   nscp          nscp.so&lt;br /&gt;
   ns_param   nsdb          nsdb.so; # Load the generic database module&lt;br /&gt;
&lt;br /&gt;
 # Configure nssock&lt;br /&gt;
 ns_section ns/server/server1/module/nssock&lt;br /&gt;
   ns_param port 80&lt;br /&gt;
   ns_param address 127.0.0.1&lt;br /&gt;
&lt;br /&gt;
 # Configure server1 accesslog&lt;br /&gt;
   ns_section ns/server/server1/module/nslog&lt;br /&gt;
   ns_param   file            /var/log/aolserver4/example1.com.access.log&lt;br /&gt;
&lt;br /&gt;
 # Database configuration&lt;br /&gt;
   ns_section &amp;quot;ns/db/drivers&amp;quot;&lt;br /&gt;
   ns_param postgres_driver nspostgres.so&lt;br /&gt;
   ns_section &amp;quot;ns/db/pools&amp;quot;&lt;br /&gt;
   ns_param postgres_pool &amp;quot;Postgres Pool&amp;quot;&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  127.0.0.1:5432:mydb&lt;br /&gt;
   ns_param user        postgres&lt;br /&gt;
   ns_param password    pass@12345&lt;br /&gt;
   ns_param connections 1&lt;br /&gt;
   ns_param logsqlerrors true&lt;br /&gt;
   ns_param verbose      false&lt;br /&gt;
  &lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''Note'''&lt;br /&gt;
&lt;br /&gt;
If a Tcl directory is specified, the init.tcl file in that directory is sourced first (if it exists), and then all the remaining .tcl files are sourced alphabetically.&lt;br /&gt;
&lt;br /&gt;
**[[Conf/Examples/DatabseExample | A simple tcl script example of Database Configuration]]&lt;/div&gt;</summary>
		<author><name>Visitatvishal</name></author>
		
	</entry>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/TclExample&amp;diff=7047</id>
		<title>Conf/Examples/TclExample</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/TclExample&amp;diff=7047"/>
		<updated>2012-01-11T09:32:22Z</updated>

		<summary type="html">&lt;p&gt;Visitatvishal: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
  ns_register_proc GET /hello.html hello&lt;br /&gt;
  ns_register_proc POST /hello.html hello&lt;br /&gt;
&lt;br /&gt;
  proc hello {} {&lt;br /&gt;
    set set_id [ns_conn form]&lt;br /&gt;
    set param_value [ns_set get $set_id foo]&lt;br /&gt;
    ns_return 200 text/html &amp;quot;Hello World. Value $param_value&amp;quot;&lt;br /&gt;
  }&lt;/div&gt;</summary>
		<author><name>Visitatvishal</name></author>
		
	</entry>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/TclExample&amp;diff=7046</id>
		<title>Conf/Examples/TclExample</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/TclExample&amp;diff=7046"/>
		<updated>2012-01-11T09:32:01Z</updated>

		<summary type="html">&lt;p&gt;Visitatvishal: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Conf/Examples/AdpConfig| part of ADP Config Examples]]&lt;br /&gt;
  ns_register_proc GET /hello.html hello&lt;br /&gt;
  ns_register_proc POST /hello.html hello&lt;br /&gt;
&lt;br /&gt;
  proc hello {} {&lt;br /&gt;
    set set_id [ns_conn form]&lt;br /&gt;
    set param_value [ns_set get $set_id foo]&lt;br /&gt;
    ns_return 200 text/html &amp;quot;Hello World. Value $param_value&amp;quot;&lt;br /&gt;
  }&lt;/div&gt;</summary>
		<author><name>Visitatvishal</name></author>
		
	</entry>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/DatabseExample&amp;diff=7045</id>
		<title>Conf/Examples/DatabseExample</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/DatabseExample&amp;diff=7045"/>
		<updated>2012-01-11T09:31:06Z</updated>

		<summary type="html">&lt;p&gt;Visitatvishal: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;  &amp;lt;html&amp;gt;&lt;br /&gt;
    &amp;lt;head&amp;gt;&amp;lt;title&amp;gt;Testing of ADP&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&lt;br /&gt;
  &amp;lt;body&amp;gt;  &lt;br /&gt;
  A simple tcl script example of Database Configuration&lt;br /&gt;
  &amp;lt;% &lt;br /&gt;
   set pool &amp;quot;postgres_pool&amp;quot;&lt;br /&gt;
   set sql &amp;quot;select * from users&amp;quot;&lt;br /&gt;
   set db [ns_db gethandle $pool]&lt;br /&gt;
   set row [ns_db select $db $sql]&lt;br /&gt;
   while {[ns_db getrow $db $row]} {&lt;br /&gt;
    ns_adp_puts &amp;quot;row: [ns_set array $row]&amp;quot;&lt;br /&gt;
   }	&lt;br /&gt;
   ns_db releasehandle $db&lt;br /&gt;
  %&amp;gt;&lt;br /&gt;
  &amp;lt;/body&amp;gt;&lt;br /&gt;
  &amp;lt;/html&amp;gt;&lt;/div&gt;</summary>
		<author><name>Visitatvishal</name></author>
		
	</entry>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/DatabseExample&amp;diff=7044</id>
		<title>Conf/Examples/DatabseExample</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/DatabseExample&amp;diff=7044"/>
		<updated>2012-01-11T09:30:53Z</updated>

		<summary type="html">&lt;p&gt;Visitatvishal: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;  &amp;lt;html&amp;gt;&lt;br /&gt;
    &amp;lt;head&amp;gt;&amp;lt;title&amp;gt;Testing of ADP&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&lt;br /&gt;
  &amp;lt;body&amp;gt;  &lt;br /&gt;
  A simple tcl script example of Database Configuration&lt;br /&gt;
  &amp;lt;% &lt;br /&gt;
   set pool &amp;quot;postgres_pool&amp;quot;&lt;br /&gt;
   set sql &amp;quot;select * from users&amp;quot;&lt;br /&gt;
   set db [ns_db gethandle $pool]&lt;br /&gt;
   set row [ns_db select $db $sql]&lt;br /&gt;
   while {[ns_db getrow $db $row]} {&lt;br /&gt;
    ns_adp_puts &amp;quot;row: [ns_set array $row]&amp;quot;&lt;br /&gt;
   }	&lt;br /&gt;
   ns_db releasehandle $db&lt;br /&gt;
  %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;/body&amp;gt;&lt;br /&gt;
  &amp;lt;/html&amp;gt;&lt;/div&gt;</summary>
		<author><name>Visitatvishal</name></author>
		
	</entry>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/DatabseExample&amp;diff=7043</id>
		<title>Conf/Examples/DatabseExample</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/DatabseExample&amp;diff=7043"/>
		<updated>2012-01-11T09:30:14Z</updated>

		<summary type="html">&lt;p&gt;Visitatvishal: Created page with '  &amp;lt;html&amp;gt;     &amp;lt;head&amp;gt;&amp;lt;title&amp;gt;Testing of ADP&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;   &amp;lt;body&amp;gt;     kjhkjhk   &amp;lt;%     set pool &amp;quot;postgres_pool&amp;quot;    set sql &amp;quot;select * from users&amp;quot;    set db [ns_db gethandle $pool] …'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;  &amp;lt;html&amp;gt;&lt;br /&gt;
    &amp;lt;head&amp;gt;&amp;lt;title&amp;gt;Testing of ADP&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&lt;br /&gt;
  &amp;lt;body&amp;gt;  &lt;br /&gt;
  kjhkjhk&lt;br /&gt;
  &amp;lt;% &lt;br /&gt;
   set pool &amp;quot;postgres_pool&amp;quot;&lt;br /&gt;
   set sql &amp;quot;select * from users&amp;quot;&lt;br /&gt;
   set db [ns_db gethandle $pool]&lt;br /&gt;
   set row [ns_db select $db $sql]&lt;br /&gt;
   while {[ns_db getrow $db $row]} {&lt;br /&gt;
    ns_adp_puts &amp;quot;row: [ns_set array $row]&amp;quot;&lt;br /&gt;
   }	&lt;br /&gt;
   ns_db releasehandle $db&lt;br /&gt;
  %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;/body&amp;gt;&lt;br /&gt;
  &amp;lt;/html&amp;gt;&lt;/div&gt;</summary>
		<author><name>Visitatvishal</name></author>
		
	</entry>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/DatabseConfig&amp;diff=7042</id>
		<title>Conf/Examples/DatabseConfig</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/DatabseConfig&amp;diff=7042"/>
		<updated>2012-01-11T09:20:34Z</updated>

		<summary type="html">&lt;p&gt;Visitatvishal: /* TCL Library Configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= TCL Library Configuration = &lt;br /&gt;
[[Conf/Examples | part of AOLserver Config Examples]]&lt;br /&gt;
&lt;br /&gt;
'''The config file'''&lt;br /&gt;
&lt;br /&gt;
 # Global Parameters&lt;br /&gt;
 ns_section ns/parameters&lt;br /&gt;
 ns_param home /usr/lib/aolserver4&lt;br /&gt;
 ns_param servername &amp;quot;Main AOLserver Process&amp;quot;&lt;br /&gt;
 ns_param serverlog /var/log/aolserver4/virtual-hosts.log&lt;br /&gt;
 ns_param pidfile /var/run/aolserver4/virtual-hosts.pid&lt;br /&gt;
&lt;br /&gt;
 ns_section ns/servers&lt;br /&gt;
 ns_param   server1 &amp;quot;Website 1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 # virtual server 1 &lt;br /&gt;
 ns_section ns/server/server1&lt;br /&gt;
 ns_param   directoryfile   index.html&lt;br /&gt;
 ns_param   pageroot        /var/www/vhost1&lt;br /&gt;
&lt;br /&gt;
 # modules for server1&lt;br /&gt;
 ns_section ns/server/server1/modules&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   nscp          nscp.so&lt;br /&gt;
   ns_param   nsdb          nsdb.so; # Load the generic database module&lt;br /&gt;
&lt;br /&gt;
 # Configure nssock&lt;br /&gt;
 ns_section ns/server/server1/module/nssock&lt;br /&gt;
   ns_param port 80&lt;br /&gt;
   ns_param address 127.0.0.1&lt;br /&gt;
&lt;br /&gt;
 # Configure server1 accesslog&lt;br /&gt;
   ns_section ns/server/server1/module/nslog&lt;br /&gt;
   ns_param   file            /var/log/aolserver4/example1.com.access.log&lt;br /&gt;
&lt;br /&gt;
 # Database configuration&lt;br /&gt;
   ns_section &amp;quot;ns/db/drivers&amp;quot;&lt;br /&gt;
   ns_param postgres_driver nspostgres.so&lt;br /&gt;
   ns_section &amp;quot;ns/db/pools&amp;quot;&lt;br /&gt;
   ns_param postgres_pool &amp;quot;Postgres Pool&amp;quot;&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  127.0.0.1:5432:mydb&lt;br /&gt;
   ns_param user        postgres&lt;br /&gt;
   ns_param password    pass@12345&lt;br /&gt;
   ns_param connections 1&lt;br /&gt;
   ns_param logsqlerrors true&lt;br /&gt;
   ns_param verbose      false&lt;br /&gt;
  &lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''Note'''&lt;br /&gt;
&lt;br /&gt;
If a Tcl directory is specified, the init.tcl file in that directory is sourced first (if it exists), and then all the remaining .tcl files are sourced alphabetically.&lt;br /&gt;
&lt;br /&gt;
[[Conf/Examples/DatabaseExample| A simple tcl script example of Database Configuration]]&lt;/div&gt;</summary>
		<author><name>Visitatvishal</name></author>
		
	</entry>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples&amp;diff=7041</id>
		<title>Conf/Examples</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples&amp;diff=7041"/>
		<updated>2012-01-11T09:20:13Z</updated>

		<summary type="html">&lt;p&gt;Visitatvishal: /* AOLServer Configuration Examples */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= AOLServer Configuration Examples =&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/Minimal | Minimal Configuration]] - the bare minimum&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/VirtualHosts | Virtual Hosts]] - listen on the same port for several hostnames as per HTTP 1.1&lt;br /&gt;
* [[Conf/Examples/Servers | Minimal Config for 2 Servers]] - 2 virtual servers listening on 2 ports.&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/Full | Full Configuration]]&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/CgiConfig | CGI Configuration]]&lt;br /&gt;
** [[Conf/Examples/CgiConfig/TclExample | A simple tcl CGI script example]]&lt;br /&gt;
** [[Conf/Examples/CgiConfig/TclParamExample | A tcl CGI script with GET parameters example]]&lt;br /&gt;
**[[Conf/Examples/CgiConfig/ShExample | A simple shell script example]]&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/AdpConfig | ADP Configuration]]&lt;br /&gt;
**[[Conf/Examples/AdpExample | A simple tcl script example of Adp]]&lt;br /&gt;
**[[Conf/Examples/AdpParamExample | A simple tcl script example of Adp with GET parameters]]&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/TclConfig | TCL Library Configuration]]&lt;br /&gt;
**[[Conf/Examples/TclExample | A simple tcl script using Tcl Library]]&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/DatabseConfig | TCL Database Configuration]]&lt;br /&gt;
**[[Conf/Examples/DatabseExample | A simple tcl script example of Database Configuration]]&lt;/div&gt;</summary>
		<author><name>Visitatvishal</name></author>
		
	</entry>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/DatabseConfig&amp;diff=7040</id>
		<title>Conf/Examples/DatabseConfig</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/DatabseConfig&amp;diff=7040"/>
		<updated>2012-01-11T09:18:40Z</updated>

		<summary type="html">&lt;p&gt;Visitatvishal: /* TCL Library Configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= TCL Library Configuration = &lt;br /&gt;
[[Conf/Examples | part of AOLserver Config Examples]]&lt;br /&gt;
&lt;br /&gt;
'''The config file'''&lt;br /&gt;
&lt;br /&gt;
 # Global Parameters&lt;br /&gt;
 ns_section ns/parameters&lt;br /&gt;
 ns_param home /usr/lib/aolserver4&lt;br /&gt;
 ns_param servername &amp;quot;Main AOLserver Process&amp;quot;&lt;br /&gt;
 ns_param serverlog /var/log/aolserver4/virtual-hosts.log&lt;br /&gt;
 ns_param pidfile /var/run/aolserver4/virtual-hosts.pid&lt;br /&gt;
&lt;br /&gt;
 ns_section ns/servers&lt;br /&gt;
 ns_param   server1 &amp;quot;Website 1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 # virtual server 1 &lt;br /&gt;
 ns_section ns/server/server1&lt;br /&gt;
 ns_param   directoryfile   index.html&lt;br /&gt;
 ns_param   pageroot        /var/www/vhost1&lt;br /&gt;
&lt;br /&gt;
 # modules for server1&lt;br /&gt;
 ns_section ns/server/server1/modules&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   nscp          nscp.so&lt;br /&gt;
   ns_param   nsdb          nsdb.so; # Load the generic database module&lt;br /&gt;
&lt;br /&gt;
 # Configure nssock&lt;br /&gt;
 ns_section ns/server/server1/module/nssock&lt;br /&gt;
   ns_param port 80&lt;br /&gt;
   ns_param address 127.0.0.1&lt;br /&gt;
&lt;br /&gt;
 # Configure server1 accesslog&lt;br /&gt;
   ns_section ns/server/server1/module/nslog&lt;br /&gt;
   ns_param   file            /var/log/aolserver4/example1.com.access.log&lt;br /&gt;
&lt;br /&gt;
 # Database configuration&lt;br /&gt;
   ns_section &amp;quot;ns/db/drivers&amp;quot;&lt;br /&gt;
   ns_param postgres_driver nspostgres.so&lt;br /&gt;
   ns_section &amp;quot;ns/db/pools&amp;quot;&lt;br /&gt;
   ns_param postgres_pool &amp;quot;Postgres Pool&amp;quot;&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  127.0.0.1:5432:mydb&lt;br /&gt;
   ns_param user        postgres&lt;br /&gt;
   ns_param password    pass@12345&lt;br /&gt;
   ns_param connections 1&lt;br /&gt;
   ns_param logsqlerrors true&lt;br /&gt;
   ns_param verbose      false&lt;br /&gt;
  &lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''Note'''&lt;br /&gt;
&lt;br /&gt;
If a Tcl directory is specified, the init.tcl file in that directory is sourced first (if it exists), and then all the remaining .tcl files are sourced alphabetically.&lt;br /&gt;
&lt;br /&gt;
[[Conf/Examples/DatabaseExample| A simple tcl example for Database Configuration]]&lt;/div&gt;</summary>
		<author><name>Visitatvishal</name></author>
		
	</entry>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/DatabseConfig&amp;diff=7039</id>
		<title>Conf/Examples/DatabseConfig</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/DatabseConfig&amp;diff=7039"/>
		<updated>2012-01-11T09:17:28Z</updated>

		<summary type="html">&lt;p&gt;Visitatvishal: Created page with '= TCL Library Configuration =   part of AOLserver Config Examples  '''The config file'''   # Global Parameters  ns_section ns/parameters  ns_param home /usr/li…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= TCL Library Configuration = &lt;br /&gt;
[[Conf/Examples | part of AOLserver Config Examples]]&lt;br /&gt;
&lt;br /&gt;
'''The config file'''&lt;br /&gt;
&lt;br /&gt;
 # Global Parameters&lt;br /&gt;
 ns_section ns/parameters&lt;br /&gt;
 ns_param home /usr/lib/aolserver4&lt;br /&gt;
 ns_param servername &amp;quot;Main AOLserver Process&amp;quot;&lt;br /&gt;
 ns_param serverlog /var/log/aolserver4/virtual-hosts.log&lt;br /&gt;
 ns_param pidfile /var/run/aolserver4/virtual-hosts.pid&lt;br /&gt;
&lt;br /&gt;
 ns_section ns/servers&lt;br /&gt;
 ns_param   server1 &amp;quot;Website 1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 # virtual server 1 &lt;br /&gt;
 ns_section ns/server/server1&lt;br /&gt;
 ns_param   directoryfile   index.html&lt;br /&gt;
 ns_param   pageroot        /var/www/vhost1&lt;br /&gt;
&lt;br /&gt;
 # modules for server1&lt;br /&gt;
 ns_section ns/server/server1/modules&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   nscp          nscp.so&lt;br /&gt;
   ns_param   nsdb          nsdb.so; # Load the generic database module&lt;br /&gt;
&lt;br /&gt;
 # Configure nssock&lt;br /&gt;
 ns_section ns/server/server1/module/nssock&lt;br /&gt;
   ns_param port 80&lt;br /&gt;
   ns_param address 127.0.0.1&lt;br /&gt;
&lt;br /&gt;
 # Configure server1 accesslog&lt;br /&gt;
   ns_section ns/server/server1/module/nslog&lt;br /&gt;
   ns_param   file            /var/log/aolserver4/example1.com.access.log&lt;br /&gt;
&lt;br /&gt;
 # Database configuration&lt;br /&gt;
   ns_section &amp;quot;ns/db/drivers&amp;quot;&lt;br /&gt;
   ns_param postgres_driver nspostgres.so&lt;br /&gt;
   ns_section &amp;quot;ns/db/pools&amp;quot;&lt;br /&gt;
   ns_param postgres_pool &amp;quot;Postgres Pool&amp;quot;&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  127.0.0.1:5432:mydb&lt;br /&gt;
   ns_param user        postgres&lt;br /&gt;
   ns_param password    pass@12345&lt;br /&gt;
   ns_param connections 1&lt;br /&gt;
   ns_param logsqlerrors true&lt;br /&gt;
   ns_param verbose      false&lt;br /&gt;
  &lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''Note'''&lt;br /&gt;
&lt;br /&gt;
If a Tcl directory is specified, the init.tcl file in that directory is sourced first (if it exists), and then all the remaining .tcl files are sourced alphabetically.&lt;br /&gt;
&lt;br /&gt;
[[Conf/Examples/TclExample| A simple tcl script using Tcl Library]]&lt;/div&gt;</summary>
		<author><name>Visitatvishal</name></author>
		
	</entry>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples&amp;diff=7038</id>
		<title>Conf/Examples</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples&amp;diff=7038"/>
		<updated>2012-01-11T09:13:52Z</updated>

		<summary type="html">&lt;p&gt;Visitatvishal: /* AOLServer Configuration Examples */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= AOLServer Configuration Examples =&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/Minimal | Minimal Configuration]] - the bare minimum&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/VirtualHosts | Virtual Hosts]] - listen on the same port for several hostnames as per HTTP 1.1&lt;br /&gt;
* [[Conf/Examples/Servers | Minimal Config for 2 Servers]] - 2 virtual servers listening on 2 ports.&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/Full | Full Configuration]]&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/CgiConfig | CGI Configuration]]&lt;br /&gt;
** [[Conf/Examples/CgiConfig/TclExample | A simple tcl CGI script example]]&lt;br /&gt;
** [[Conf/Examples/CgiConfig/TclParamExample | A tcl CGI script with GET parameters example]]&lt;br /&gt;
**[[Conf/Examples/CgiConfig/ShExample | A simple shell script example]]&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/AdpConfig | ADP Configuration]]&lt;br /&gt;
**[[Conf/Examples/AdpExample | A simple tcl script example of Adp]]&lt;br /&gt;
**[[Conf/Examples/AdpParamExample | A simple tcl script example of Adp with GET parameters]]&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/TclConfig | TCL Library Configuration]]&lt;br /&gt;
**[[Conf/Examples/TclExample | A simple tcl script using Tcl Library]]&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/DatabseConfig | TCL Database Configuration]]&lt;br /&gt;
**[[Conf/Examples/DatabseExample | A simple tcl example for Database Configuration]]&lt;/div&gt;</summary>
		<author><name>Visitatvishal</name></author>
		
	</entry>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/TclConfig&amp;diff=6876</id>
		<title>Conf/Examples/TclConfig</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/TclConfig&amp;diff=6876"/>
		<updated>2012-01-06T15:07:46Z</updated>

		<summary type="html">&lt;p&gt;Visitatvishal: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= TCL Library Configuration = &lt;br /&gt;
[[Conf/Examples | part of AOLserver Config Examples]]&lt;br /&gt;
&lt;br /&gt;
'''The config file'''&lt;br /&gt;
&lt;br /&gt;
 # Global Parameters&lt;br /&gt;
 ns_section ns/parameters&lt;br /&gt;
 ns_param home /usr/lib/aolserver4&lt;br /&gt;
 ns_param servername &amp;quot;Main AOLserver Process&amp;quot;&lt;br /&gt;
 ns_param serverlog /var/log/aolserver4/virtual-hosts.log&lt;br /&gt;
 ns_param pidfile /var/run/aolserver4/virtual-hosts.pid&lt;br /&gt;
&lt;br /&gt;
 ns_section ns/servers&lt;br /&gt;
 ns_param   server1 &amp;quot;Website 1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 # virtual server 1 &lt;br /&gt;
 ns_section ns/server/server1&lt;br /&gt;
 ns_param   directoryfile   index.html&lt;br /&gt;
 ns_param   pageroot        /var/www/vhost1&lt;br /&gt;
&lt;br /&gt;
 # modules for server1&lt;br /&gt;
 ns_section ns/server/server1/modules&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;
&lt;br /&gt;
 # Configure nssock&lt;br /&gt;
 ns_section ns/server/server1/module/nssock&lt;br /&gt;
   ns_param port 80&lt;br /&gt;
   ns_param address 127.0.0.1&lt;br /&gt;
&lt;br /&gt;
 # Configure server1 accesslog&lt;br /&gt;
   ns_section ns/server/server1/module/nslog&lt;br /&gt;
   ns_param   file            /var/log/aolserver4/example1.com.access.log&lt;br /&gt;
&lt;br /&gt;
  # Configure TCL Library&lt;br /&gt;
   ns_section ns/server/server1/tcl&lt;br /&gt;
   ns_param   library  /var/www/vhost1/tcl&lt;br /&gt;
  &lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''Note'''&lt;br /&gt;
&lt;br /&gt;
If a Tcl directory is specified, the init.tcl file in that directory is sourced first (if it exists), and then all the remaining .tcl files are sourced alphabetically.&lt;br /&gt;
&lt;br /&gt;
[[Conf/Examples/TclExample| A simple tcl script using Tcl Library]]&lt;/div&gt;</summary>
		<author><name>Visitatvishal</name></author>
		
	</entry>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/TclConfig&amp;diff=6875</id>
		<title>Conf/Examples/TclConfig</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/TclConfig&amp;diff=6875"/>
		<updated>2012-01-06T14:19:23Z</updated>

		<summary type="html">&lt;p&gt;Visitatvishal: /* ADP Configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= TCL Library Configuration = &lt;br /&gt;
[[Conf/Examples | part of AOLserver Config Examples]]&lt;br /&gt;
&lt;br /&gt;
'''The config file'''&lt;br /&gt;
&lt;br /&gt;
 # Global Parameters&lt;br /&gt;
 ns_section ns/parameters&lt;br /&gt;
 ns_param home /usr/lib/aolserver4&lt;br /&gt;
 ns_param servername &amp;quot;Main AOLserver Process&amp;quot;&lt;br /&gt;
 ns_param serverlog /var/log/aolserver4/virtual-hosts.log&lt;br /&gt;
 ns_param pidfile /var/run/aolserver4/virtual-hosts.pid&lt;br /&gt;
&lt;br /&gt;
 ns_section ns/servers&lt;br /&gt;
 ns_param   server1 &amp;quot;Website 1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 # virtual server 1 &lt;br /&gt;
 ns_section ns/server/server1&lt;br /&gt;
 ns_param   directoryfile   index.html&lt;br /&gt;
 ns_param   pageroot        /var/www/vhost1&lt;br /&gt;
&lt;br /&gt;
 # modules for server1&lt;br /&gt;
 ns_section ns/server/server1/modules&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;
&lt;br /&gt;
 # Configure nssock&lt;br /&gt;
 ns_section ns/server/server1/module/nssock&lt;br /&gt;
   ns_param port 80&lt;br /&gt;
   ns_param address 127.0.0.1&lt;br /&gt;
&lt;br /&gt;
 # Configure server1 accesslog&lt;br /&gt;
   ns_section ns/server/server1/module/nslog&lt;br /&gt;
   ns_param   file            /var/log/aolserver4/example1.com.access.log&lt;br /&gt;
&lt;br /&gt;
  # Configure TCL Library&lt;br /&gt;
   ns_section ns/server/server1/tcl&lt;br /&gt;
   ns_param   library  /var/www/vhost1/tcl&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
[[Conf/Examples/TclExample| A simple tcl script using Tcl Library]]&lt;/div&gt;</summary>
		<author><name>Visitatvishal</name></author>
		
	</entry>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/TclConfig&amp;diff=6868</id>
		<title>Conf/Examples/TclConfig</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/TclConfig&amp;diff=6868"/>
		<updated>2012-01-06T10:44:15Z</updated>

		<summary type="html">&lt;p&gt;Visitatvishal: /* ADP Configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= ADP Configuration = &lt;br /&gt;
[[Conf/Examples | part of AOLserver Config Examples]]&lt;br /&gt;
&lt;br /&gt;
'''The config file'''&lt;br /&gt;
&lt;br /&gt;
 # Global Parameters&lt;br /&gt;
 ns_section ns/parameters&lt;br /&gt;
 ns_param home /usr/lib/aolserver4&lt;br /&gt;
 ns_param servername &amp;quot;Main AOLserver Process&amp;quot;&lt;br /&gt;
 ns_param serverlog /var/log/aolserver4/virtual-hosts.log&lt;br /&gt;
 ns_param pidfile /var/run/aolserver4/virtual-hosts.pid&lt;br /&gt;
&lt;br /&gt;
 ns_section ns/servers&lt;br /&gt;
 ns_param   server1 &amp;quot;Website 1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 # virtual server 1 &lt;br /&gt;
 ns_section ns/server/server1&lt;br /&gt;
 ns_param   directoryfile   index.html&lt;br /&gt;
 ns_param   pageroot        /var/www/vhost1&lt;br /&gt;
&lt;br /&gt;
 # modules for server1&lt;br /&gt;
 ns_section ns/server/server1/modules&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;
&lt;br /&gt;
 # Configure nssock&lt;br /&gt;
 ns_section ns/server/server1/module/nssock&lt;br /&gt;
   ns_param port 80&lt;br /&gt;
   ns_param address 127.0.0.1&lt;br /&gt;
&lt;br /&gt;
 # Configure server1 accesslog&lt;br /&gt;
   ns_section ns/server/server1/module/nslog&lt;br /&gt;
   ns_param   file            /var/log/aolserver4/example1.com.access.log&lt;br /&gt;
&lt;br /&gt;
  # Configure TCL Library&lt;br /&gt;
   ns_section ns/server/server1/tcl&lt;br /&gt;
   ns_param   library  /var/www/vhost1/tcl&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
[[Conf/Examples/TclExample| A simple tcl script using Tcl Library]]&lt;/div&gt;</summary>
		<author><name>Visitatvishal</name></author>
		
	</entry>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples&amp;diff=6867</id>
		<title>Conf/Examples</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples&amp;diff=6867"/>
		<updated>2012-01-06T10:41:47Z</updated>

		<summary type="html">&lt;p&gt;Visitatvishal: /* AOLServer Configuration Examples */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= AOLServer Configuration Examples =&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/Minimal | Minimal Configuration]] - the bare minimum&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/VirtualHosts | Virtual Hosts]] - listen on the same port for several hostnames as per HTTP 1.1&lt;br /&gt;
* [[Conf/Examples/Servers | Minimal Config for 2 Servers]] - 2 virtual servers listening on 2 ports.&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/Full | Full Configuration]]&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/CgiConfig | CGI Configuration]]&lt;br /&gt;
** [[Conf/Examples/CgiConfig/TclExample | A simple tcl CGI script example]]&lt;br /&gt;
** [[Conf/Examples/CgiConfig/TclParamExample | A tcl CGI script with GET parameters example]]&lt;br /&gt;
**[[Conf/Examples/CgiConfig/ShExample | A simple shell script example]]&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/AdpConfig | ADP Configuration]]&lt;br /&gt;
**[[Conf/Examples/AdpExample | A simple tcl script example of Adp]]&lt;br /&gt;
**[[Conf/Examples/AdpParamExample | A simple tcl script example of Adp with GET parameters]]&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/TclConfig | TCL Library Configuration]]&lt;br /&gt;
**[[Conf/Examples/TclExample | A simple tcl script using Tcl Library]]&lt;/div&gt;</summary>
		<author><name>Visitatvishal</name></author>
		
	</entry>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/TclExample&amp;diff=6866</id>
		<title>Conf/Examples/TclExample</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/TclExample&amp;diff=6866"/>
		<updated>2012-01-06T10:39:31Z</updated>

		<summary type="html">&lt;p&gt;Visitatvishal: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;  ns_register_proc GET /hello.html hello&lt;br /&gt;
  ns_register_proc POST /hello.html hello&lt;br /&gt;
&lt;br /&gt;
  proc hello {} {&lt;br /&gt;
    set set_id [ns_conn form]&lt;br /&gt;
    set param_value [ns_set get $set_id foo]&lt;br /&gt;
    ns_return 200 text/html &amp;quot;Hello World. Value $param_value&amp;quot;&lt;br /&gt;
  }&lt;/div&gt;</summary>
		<author><name>Visitatvishal</name></author>
		
	</entry>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/TclConfig&amp;diff=6865</id>
		<title>Conf/Examples/TclConfig</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/TclConfig&amp;diff=6865"/>
		<updated>2012-01-06T10:38:42Z</updated>

		<summary type="html">&lt;p&gt;Visitatvishal: /* ADP Configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= ADP Configuration = &lt;br /&gt;
[[Conf/Examples | part of AOLserver Config Examples]]&lt;br /&gt;
&lt;br /&gt;
'''The config file'''&lt;br /&gt;
&lt;br /&gt;
 # Global Parameters&lt;br /&gt;
 ns_section ns/parameters&lt;br /&gt;
 ns_param home /usr/lib/aolserver4&lt;br /&gt;
 ns_param servername &amp;quot;Main AOLserver Process&amp;quot;&lt;br /&gt;
 ns_param serverlog /var/log/aolserver4/virtual-hosts.log&lt;br /&gt;
 ns_param pidfile /var/run/aolserver4/virtual-hosts.pid&lt;br /&gt;
&lt;br /&gt;
 ns_section ns/servers&lt;br /&gt;
 ns_param   server1 &amp;quot;Website 1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 # virtual server 1 &lt;br /&gt;
 ns_section ns/server/server1&lt;br /&gt;
 ns_param   directoryfile   index.html&lt;br /&gt;
 ns_param   pageroot        /var/www/vhost1&lt;br /&gt;
&lt;br /&gt;
 # modules for server1&lt;br /&gt;
 ns_section ns/server/server1/modules&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;
&lt;br /&gt;
 # Configure nssock&lt;br /&gt;
 ns_section ns/server/server1/module/nssock&lt;br /&gt;
   ns_param port 80&lt;br /&gt;
   ns_param address 127.0.0.1&lt;br /&gt;
&lt;br /&gt;
 # Configure server1 accesslog&lt;br /&gt;
   ns_section ns/server/server1/module/nslog&lt;br /&gt;
   ns_param   file            /var/log/aolserver4/example1.com.access.log&lt;br /&gt;
&lt;br /&gt;
  # Configure TCL Library&lt;br /&gt;
   ns_section ns/server/server1/tcl&lt;br /&gt;
   ns_param   library  /var/www/vhost1/tcl&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
[[Conf/Examples/TclExample| An example.tcl script]]&lt;/div&gt;</summary>
		<author><name>Visitatvishal</name></author>
		
	</entry>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/TclConfig&amp;diff=6864</id>
		<title>Conf/Examples/TclConfig</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/TclConfig&amp;diff=6864"/>
		<updated>2012-01-06T09:38:19Z</updated>

		<summary type="html">&lt;p&gt;Visitatvishal: /* ADP Configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= ADP Configuration = &lt;br /&gt;
[[Conf/Examples | part of AOLserver Config Examples]]&lt;br /&gt;
&lt;br /&gt;
'''The config file'''&lt;br /&gt;
&lt;br /&gt;
 # Global Parameters&lt;br /&gt;
 ns_section ns/parameters&lt;br /&gt;
 ns_param home /usr/lib/aolserver4&lt;br /&gt;
 ns_param servername &amp;quot;Main AOLserver Process&amp;quot;&lt;br /&gt;
 ns_param serverlog /var/log/aolserver4/virtual-hosts.log&lt;br /&gt;
 ns_param pidfile /var/run/aolserver4/virtual-hosts.pid&lt;br /&gt;
&lt;br /&gt;
 ns_section ns/servers&lt;br /&gt;
 ns_param   server1 &amp;quot;Website 1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 # virtual server 1 &lt;br /&gt;
 ns_section ns/server/server1&lt;br /&gt;
 ns_param   directoryfile   index.html&lt;br /&gt;
 ns_param   pageroot        /var/www/vhost1&lt;br /&gt;
&lt;br /&gt;
 # modules for server1&lt;br /&gt;
 ns_section ns/server/server1/modules&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;
&lt;br /&gt;
 # Configure nssock&lt;br /&gt;
 ns_section ns/server/server1/module/nssock&lt;br /&gt;
   ns_param port 80&lt;br /&gt;
   ns_param address 127.0.0.1&lt;br /&gt;
&lt;br /&gt;
 # Configure server1 accesslog&lt;br /&gt;
   ns_section ns/server/server1/module/nslog&lt;br /&gt;
   ns_param   file            /var/log/aolserver4/example1.com.access.log&lt;br /&gt;
&lt;br /&gt;
  # Configure TCL Library&lt;br /&gt;
   ns_section ns/server/server1/tcl&lt;br /&gt;
   ns_param   library  /var/www/vhost1/tcl&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
[[Conf/Examples/TclExample| An example.adp script]]&lt;/div&gt;</summary>
		<author><name>Visitatvishal</name></author>
		
	</entry>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples&amp;diff=6863</id>
		<title>Conf/Examples</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples&amp;diff=6863"/>
		<updated>2012-01-06T09:38:00Z</updated>

		<summary type="html">&lt;p&gt;Visitatvishal: /* AOLServer Configuration Examples */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= AOLServer Configuration Examples =&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/Minimal | Minimal Configuration]] - the bare minimum&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/VirtualHosts | Virtual Hosts]] - listen on the same port for several hostnames as per HTTP 1.1&lt;br /&gt;
* [[Conf/Examples/Servers | Minimal Config for 2 Servers]] - 2 virtual servers listening on 2 ports.&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/Full | Full Configuration]]&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/CgiConfig | CGI Configuration]]&lt;br /&gt;
** [[Conf/Examples/CgiConfig/TclExample | A simple tcl CGI script example]]&lt;br /&gt;
** [[Conf/Examples/CgiConfig/TclParamExample | A tcl CGI script with GET parameters example]]&lt;br /&gt;
**[[Conf/Examples/CgiConfig/ShExample | A simple shell script example]]&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/AdpConfig | ADP Configuration]]&lt;br /&gt;
**[[Conf/Examples/AdpExample | A simple tcl script example of Adp]]&lt;br /&gt;
**[[Conf/Examples/AdpParamExample | A simple tcl script example of Adp with GET parameters]]&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/TclConfig | TCL Library Configuration]]&lt;br /&gt;
**[[Conf/Examples/TclExample | A simple tcl script example of Tcl]]&lt;/div&gt;</summary>
		<author><name>Visitatvishal</name></author>
		
	</entry>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/TclExample&amp;diff=6862</id>
		<title>Conf/Examples/TclExample</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/TclExample&amp;diff=6862"/>
		<updated>2012-01-06T09:37:05Z</updated>

		<summary type="html">&lt;p&gt;Visitatvishal: Created page with 'ns_register_proc GET /hello.html hello ns_register_proc POST /hello.html hello    proc hello {} {     set set_id [ns_conn form]     set param_value [ns_set get $set_id foo]     n…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ns_register_proc GET /hello.html hello&lt;br /&gt;
ns_register_proc POST /hello.html hello&lt;br /&gt;
&lt;br /&gt;
  proc hello {} {&lt;br /&gt;
    set set_id [ns_conn form]&lt;br /&gt;
    set param_value [ns_set get $set_id foo]&lt;br /&gt;
    ns_return 200 text/html &amp;quot;Hello World. Value $param_value&amp;quot;&lt;br /&gt;
  }&lt;/div&gt;</summary>
		<author><name>Visitatvishal</name></author>
		
	</entry>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/TclConfig&amp;diff=6861</id>
		<title>Conf/Examples/TclConfig</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/TclConfig&amp;diff=6861"/>
		<updated>2012-01-06T09:35:34Z</updated>

		<summary type="html">&lt;p&gt;Visitatvishal: Created page with '= ADP Configuration =   part of AOLserver Config Examples  '''The config file'''   # Global Parameters  ns_section ns/parameters  ns_param home /usr/lib/aolser…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= ADP Configuration = &lt;br /&gt;
[[Conf/Examples | part of AOLserver Config Examples]]&lt;br /&gt;
&lt;br /&gt;
'''The config file'''&lt;br /&gt;
&lt;br /&gt;
 # Global Parameters&lt;br /&gt;
 ns_section ns/parameters&lt;br /&gt;
 ns_param home /usr/lib/aolserver4&lt;br /&gt;
 ns_param servername &amp;quot;Main AOLserver Process&amp;quot;&lt;br /&gt;
 ns_param serverlog /var/log/aolserver4/virtual-hosts.log&lt;br /&gt;
 ns_param pidfile /var/run/aolserver4/virtual-hosts.pid&lt;br /&gt;
&lt;br /&gt;
 ns_section ns/servers&lt;br /&gt;
 ns_param   server1 &amp;quot;Website 1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 # virtual server 1 &lt;br /&gt;
 ns_section ns/server/server1&lt;br /&gt;
 ns_param   directoryfile   index.html&lt;br /&gt;
 ns_param   pageroot        /var/www/vhost1&lt;br /&gt;
&lt;br /&gt;
 # modules for server1&lt;br /&gt;
 ns_section ns/server/server1/modules&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;
&lt;br /&gt;
 # Configure nssock&lt;br /&gt;
 ns_section ns/server/server1/module/nssock&lt;br /&gt;
   ns_param port 80&lt;br /&gt;
   ns_param address 127.0.0.1&lt;br /&gt;
&lt;br /&gt;
 # Configure server1 accesslog&lt;br /&gt;
   ns_section ns/server/server1/module/nslog&lt;br /&gt;
   ns_param   file            /var/log/aolserver4/example1.com.access.log&lt;br /&gt;
&lt;br /&gt;
  # Configure TCL Library&lt;br /&gt;
   ns_section ns/server/server1/tcl&lt;br /&gt;
   ns_param   library  /var/www/vhost1/tcl&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
[[Conf/Examples/TclExample| An example.adp script]]&lt;br /&gt;
&lt;br /&gt;
[[Conf/Examples/TclParamExample| An example.adp script with GET method]]&lt;/div&gt;</summary>
		<author><name>Visitatvishal</name></author>
		
	</entry>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples&amp;diff=6860</id>
		<title>Conf/Examples</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples&amp;diff=6860"/>
		<updated>2012-01-06T09:33:28Z</updated>

		<summary type="html">&lt;p&gt;Visitatvishal: /* AOLServer Configuration Examples */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= AOLServer Configuration Examples =&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/Minimal | Minimal Configuration]] - the bare minimum&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/VirtualHosts | Virtual Hosts]] - listen on the same port for several hostnames as per HTTP 1.1&lt;br /&gt;
* [[Conf/Examples/Servers | Minimal Config for 2 Servers]] - 2 virtual servers listening on 2 ports.&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/Full | Full Configuration]]&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/CgiConfig | CGI Configuration]]&lt;br /&gt;
** [[Conf/Examples/CgiConfig/TclExample | A simple tcl CGI script example]]&lt;br /&gt;
** [[Conf/Examples/CgiConfig/TclParamExample | A tcl CGI script with GET parameters example]]&lt;br /&gt;
**[[Conf/Examples/CgiConfig/ShExample | A simple shell script example]]&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/AdpConfig | ADP Configuration]]&lt;br /&gt;
**[[Conf/Examples/AdpExample | A simple tcl script example of Adp]]&lt;br /&gt;
**[[Conf/Examples/AdpParamExample | A simple tcl script example of Adp with GET parameters]]&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/TclConfig | TCL Library Configuration]]&lt;br /&gt;
**[[Conf/Examples/TclExample | A simple tcl script example of Adp]]&lt;br /&gt;
**[[Conf/Examples/TclParamExample | A simple tcl script example of Adp with GET parameters]]&lt;/div&gt;</summary>
		<author><name>Visitatvishal</name></author>
		
	</entry>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/AdpParamExample&amp;diff=6858</id>
		<title>Conf/Examples/AdpParamExample</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/AdpParamExample&amp;diff=6858"/>
		<updated>2012-01-06T09:13:48Z</updated>

		<summary type="html">&lt;p&gt;Visitatvishal: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Conf/Examples/AdpConfig| part of ADP Config Examples]]&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;html&amp;gt;&lt;br /&gt;
 &amp;lt;head&amp;gt;&amp;lt;title&amp;gt;Testing of ADP&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&lt;br /&gt;
 &amp;lt;body&amp;gt;&lt;br /&gt;
 &amp;lt;% &lt;br /&gt;
 set ns_set [ns_conn form]&lt;br /&gt;
 set param_value [ns_set get $ns_set foo]&lt;br /&gt;
 ns_puts $param_value&lt;br /&gt;
 %&amp;gt;&lt;br /&gt;
 &amp;lt;/body&amp;gt;&lt;br /&gt;
 &amp;lt;/html&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &lt;br /&gt;
  &lt;br /&gt;
----&lt;br /&gt;
To use with the example config, save the file to:&lt;br /&gt;
  /var/www/vhost1/test.adp&lt;/div&gt;</summary>
		<author><name>Visitatvishal</name></author>
		
	</entry>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/AdpParamExample&amp;diff=6857</id>
		<title>Conf/Examples/AdpParamExample</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/AdpParamExample&amp;diff=6857"/>
		<updated>2012-01-06T09:13:24Z</updated>

		<summary type="html">&lt;p&gt;Visitatvishal: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Conf/Examples/AdpConfig| part of ADP Config Examples]]&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;html&amp;gt;&lt;br /&gt;
 &amp;lt;head&amp;gt;&amp;lt;title&amp;gt;Testing of ADP&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&lt;br /&gt;
 &amp;lt;body&amp;gt;&lt;br /&gt;
 &amp;lt;% &lt;br /&gt;
 set set_conn [ns_conn form]&lt;br /&gt;
 set param_value [ns_set get $set_conn foo]&lt;br /&gt;
 ns_puts $param_value&lt;br /&gt;
 %&amp;gt;&lt;br /&gt;
 &amp;lt;/body&amp;gt;&lt;br /&gt;
 &amp;lt;/html&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &lt;br /&gt;
  &lt;br /&gt;
----&lt;br /&gt;
To use with the example config, save the file to:&lt;br /&gt;
  /var/www/vhost1/test.adp&lt;/div&gt;</summary>
		<author><name>Visitatvishal</name></author>
		
	</entry>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples&amp;diff=6856</id>
		<title>Conf/Examples</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples&amp;diff=6856"/>
		<updated>2012-01-06T09:12:29Z</updated>

		<summary type="html">&lt;p&gt;Visitatvishal: /* AOLServer Configuration Examples */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= AOLServer Configuration Examples =&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/Minimal | Minimal Configuration]] - the bare minimum&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/VirtualHosts | Virtual Hosts]] - listen on the same port for several hostnames as per HTTP 1.1&lt;br /&gt;
* [[Conf/Examples/Servers | Minimal Config for 2 Servers]] - 2 virtual servers listening on 2 ports.&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/Full | Full Configuration]]&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/CgiConfig | CGI Configuration]]&lt;br /&gt;
** [[Conf/Examples/CgiConfig/TclExample | A simple tcl CGI script example]]&lt;br /&gt;
** [[Conf/Examples/CgiConfig/TclParamExample | A tcl CGI script with GET parameters example]]&lt;br /&gt;
**[[Conf/Examples/CgiConfig/ShExample | A simple shell script example]]&lt;br /&gt;
&lt;br /&gt;
* [[Conf/Examples/AdpConfig | ADP Configuration]]&lt;br /&gt;
**[[Conf/Examples/AdpExample | A simple tcl script example of Adp]]&lt;br /&gt;
**[[Conf/Examples/AdpParamExample | A simple tcl script example of Adp with GET parameters]]&lt;/div&gt;</summary>
		<author><name>Visitatvishal</name></author>
		
	</entry>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Nscp&amp;diff=6836</id>
		<title>Nscp</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Nscp&amp;diff=6836"/>
		<updated>2012-01-05T16:50:51Z</updated>

		<summary type="html">&lt;p&gt;Visitatvishal: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;See: [http://cvs.sourceforge.net/viewcvs.py/*checkout*/aolserver/aolserver/nscp/nscp.html?rev=HEAD SF CVS: aolserver/nscp/nscp.html]&lt;br /&gt;
&lt;br /&gt;
NaviServer includes a control port interface that can be enabled with the nscp module. This control port interface allows you to telnet to a specified host and port where you can administer the server and execute database commands while the server is running.&lt;br /&gt;
&lt;br /&gt;
The control port interface is a Tcl interface. Within it, you can execute any Tcl command that Tcl libraries and ADP can; the only exceptions being the ns_conn commands.&lt;br /&gt;
&lt;br /&gt;
To administer a server with the control port interface while it is running, the nscp module must be loaded into the server. To set permissions for the server, the nsperm module must also be loaded. To execute database commands while the server is running, you must also configure database services for the server, including database drivers and pools.&lt;br /&gt;
&lt;br /&gt;
 Configuring the Control Port Interface&lt;br /&gt;
 #&lt;br /&gt;
 # Control port -- nscp&lt;br /&gt;
 #&lt;br /&gt;
 ns_section &amp;quot;ns/server/${servername}/module/nscp&amp;quot;&lt;br /&gt;
 ns_param   port            9999        ;# Control port listens on port 9999&lt;br /&gt;
 ns_param   address         &amp;quot;127.0.0.1&amp;quot; ;# For security, use 127.0.0.1 only&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;
 ns_section &amp;quot;ns/server/${servername}/modules&amp;quot;&lt;br /&gt;
 # ...&lt;br /&gt;
 ns_param   nscp               nscp.so&lt;br /&gt;
&lt;br /&gt;
Some things to notice about the configuration are:&lt;br /&gt;
&lt;br /&gt;
*The port parameter defines the port that the interface will listen on. The default is 9999.&lt;br /&gt;
*The address parameter defines the hostname to bind to. The default is 127.0.0.1 so that you can only connect to the control port if you are already logged on to the computer where the server is running.&lt;br /&gt;
*The user parameter defines users who can log into the control port. There are three semicolon-separated fields. The first is username (nsadmin); the second is a Unix-like password hash. You can create a password by typing &amp;quot;ns_crypt mypasswd salt&amp;quot;. As with Unix, only the first four characters are used.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  An example to use Control Port Interface&lt;br /&gt;
  &lt;br /&gt;
  # telnet localhost 9999&lt;br /&gt;
  login: nsadmin&lt;br /&gt;
  password: x&lt;br /&gt;
&lt;br /&gt;
  Welcome to servername running at /usr/local/ns/bin/nsd (pid 22413)&lt;br /&gt;
  NaviServer/4.99.2 for linux built on Sep  7 2006 at 20:38:59&lt;br /&gt;
  CVS Tag: $Name$&lt;br /&gt;
  servername:nscp 1&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Useful Commands'''&lt;br /&gt;
&lt;br /&gt;
Type &amp;quot;lsort [info commands]&amp;quot; for a complete list of commands available to you. You can type nearly any Tcl command available to NaviServer Tcl libraries and ADPs. This includes the complete Tcl core and nearly any ns_* command. Type &amp;quot;lsort [info commands ns*]&amp;quot; for a sorted list of NaviServer Tcl commands.&lt;br /&gt;
&lt;br /&gt;
Useful commands:&lt;br /&gt;
*ns_shutdown -- Shuts down the server.&lt;br /&gt;
*ns_info uptime -- How long the server has been running.&lt;br /&gt;
*ns_info threads -- How many threads are running&lt;br /&gt;
*exit -- Exit the control port.&lt;/div&gt;</summary>
		<author><name>Visitatvishal</name></author>
		
	</entry>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Nscp&amp;diff=6834</id>
		<title>Nscp</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Nscp&amp;diff=6834"/>
		<updated>2012-01-05T16:16:46Z</updated>

		<summary type="html">&lt;p&gt;Visitatvishal: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;See: [http://cvs.sourceforge.net/viewcvs.py/*checkout*/aolserver/aolserver/nscp/nscp.html?rev=HEAD SF CVS: aolserver/nscp/nscp.html]&lt;br /&gt;
&lt;br /&gt;
  NaviServer includes a control port interface that can be enabled with the nscp module. This control port interface allows you to telnet to a specified host and port where you can administer the server and execute database commands while the server is running.&lt;br /&gt;
 &lt;br /&gt;
  The control port interface is a Tcl interface. Within it, you can execute any Tcl command that Tcl libraries and ADP can; the only exceptions being the ns_conn commands.&lt;br /&gt;
 &lt;br /&gt;
  To administer a server with the control port interface while it is running, the nscp module must be loaded into the server. To set permissions for the server, the nsperm module must also be loaded. To execute database commands while the server is running, you must also configure database services for the server, including database drivers and pools.&lt;/div&gt;</summary>
		<author><name>Visitatvishal</name></author>
		
	</entry>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/AdpParamExample&amp;diff=6775</id>
		<title>Conf/Examples/AdpParamExample</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Conf/Examples/AdpParamExample&amp;diff=6775"/>
		<updated>2012-01-04T09:54:49Z</updated>

		<summary type="html">&lt;p&gt;Visitatvishal: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Conf/Examples/AdpConfig| part of ADP Config Examples]]&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;html&amp;gt;&lt;br /&gt;
 &amp;lt;head&amp;gt;&amp;lt;title&amp;gt;Testing of ADP&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&lt;br /&gt;
 &amp;lt;body&amp;gt;&lt;br /&gt;
 &amp;lt;% &lt;br /&gt;
 set r [ns_conn form $conn]&lt;br /&gt;
 set param_value [ns_set get $r foo]&lt;br /&gt;
 ns_puts $param_value&lt;br /&gt;
 %&amp;gt;&lt;br /&gt;
 &amp;lt;/body&amp;gt;&lt;br /&gt;
 &amp;lt;/html&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &lt;br /&gt;
  &lt;br /&gt;
  ---------------------------------------------------------------------------------&lt;br /&gt;
  Save the file at below location:&lt;br /&gt;
  /var/www/vhost1/test.adp&lt;/div&gt;</summary>
		<author><name>Visitatvishal</name></author>
		
	</entry>
</feed>