Difference between revisions of "Conf/Examples/CgiConfig"
Jump to navigation
Jump to search
(6 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
'''The config file''' | '''The config file''' | ||
− | + | # Global Parameters | |
+ | ns_section ns/parameters | ||
+ | ns_param home /usr/lib/aolserver4 | ||
+ | ns_param servername "Main AOLserver Process" | ||
+ | ns_param serverlog /var/log/aolserver4/virtual-hosts.log | ||
+ | ns_param pidfile /var/run/aolserver4/virtual-hosts.pid | ||
− | [[Conf/Examples/CgiConfig/ | + | ns_section ns/servers |
+ | ns_param server1 "Website 1" | ||
+ | |||
+ | # virtual server 1 | ||
+ | ns_section ns/server/server1 | ||
+ | ns_param directoryfile index.html | ||
+ | ns_param pageroot /var/www/vhost1 | ||
+ | |||
+ | # modules for server1 | ||
+ | ns_section ns/server/server1/modules | ||
+ | ns_param nssock nssock.so | ||
+ | ns_param nslog nslog.so | ||
+ | ns_param nscgi nscgi.so | ||
+ | |||
+ | # Configure nssock | ||
+ | ns_section ns/server/server1/module/nssock | ||
+ | ns_param port 80 | ||
+ | ns_param address 127.0.0.1 | ||
+ | |||
+ | # Configure server1 accesslog | ||
+ | ns_section ns/server/server1/module/nslog | ||
+ | ns_param file /var/log/aolserver4/example1.com.access.log | ||
+ | |||
+ | ns_section ns/server/server1/module/nscgi | ||
+ | ns_param map "GET /cgi-bin /var/www/vhost1/cgi-bin" | ||
+ | ns_param map "POST /cgi-bin /var/www/vhost1/cgi-bin" | ||
+ | ns_param map "GET /xx" | ||
+ | ns_param interps CGIinterps | ||
+ | |||
+ | ns_section "ns/interps/CGIinterps" | ||
+ | ns_param .tcl "/usr/bin/tclsh8.5" | ||
+ | ns_param .sh "/bin/sh" | ||
+ | |||
+ | ---- | ||
+ | |||
+ | [[Conf/Examples/CgiConfig/TclExample | An example.tcl CGI script]] | ||
+ | |||
+ | [[Conf/Examples/CgiConfig/ShExample | An example.sh script]] |
Latest revision as of 09:29, 4 January 2012
CGI Configuration
part of AOLserver Config Examples
The config file
# Global Parameters ns_section ns/parameters ns_param home /usr/lib/aolserver4 ns_param servername "Main AOLserver Process" ns_param serverlog /var/log/aolserver4/virtual-hosts.log ns_param pidfile /var/run/aolserver4/virtual-hosts.pid
ns_section ns/servers ns_param server1 "Website 1"
# virtual server 1 ns_section ns/server/server1 ns_param directoryfile index.html ns_param pageroot /var/www/vhost1
# modules for server1 ns_section ns/server/server1/modules ns_param nssock nssock.so ns_param nslog nslog.so ns_param nscgi nscgi.so
# Configure nssock ns_section ns/server/server1/module/nssock ns_param port 80 ns_param address 127.0.0.1
# Configure server1 accesslog ns_section ns/server/server1/module/nslog ns_param file /var/log/aolserver4/example1.com.access.log
ns_section ns/server/server1/module/nscgi ns_param map "GET /cgi-bin /var/www/vhost1/cgi-bin" ns_param map "POST /cgi-bin /var/www/vhost1/cgi-bin" ns_param map "GET /xx" ns_param interps CGIinterps
ns_section "ns/interps/CGIinterps" ns_param .tcl "/usr/bin/tclsh8.5" ns_param .sh "/bin/sh"