iTP Active Transaction Pages (iTP ATP) Programmer's Guide

Installing and Running ATP
iTP Active Transaction Pages (iTP ATP) Programmer’s Guide522292-002
2-9
ATP Configuration File
Set Statement and Filemap Directive
The file begins with the set statement and Filemap directive. The set statement
defines the variable ATP_ROOT to be equal to the name of the directory where ATP is
installed. The Filemap directive maps the URL component /atp to the location of
the ATP examples directory, which contains the ATP home page.
set ATP_ROOT /usr/tandem/webserver/atp
Filemap /atp $ATP_ROOT/examples
MimeType and PathwayMimeMap Directives
The MimeType directive indicates that files with the extension .atp have the mime
type application/x-httpd-guardian. The corresponding PathwayMimeMap
directive indicates that files with the extension .atp are processed by the atp server
class.
MimeType application/x-httpd-guardian atp
PathwayMimeMap atp atp
For security reasons, you might want some scripts to be processed in a separate
PATHMON environment. If so, add lines like the following to the ATP configuration
file. In this example, files with the extension .atp_sql_query are processed by the
server class atp under control of the PATHMON process /G/DJCP:
MimeType application/x-httpd-guardian atp_sql_query
PathwayMimeMap atp_sql_query /G/DJCP:atp
For more information about using separate PATHMON environments, see The
.atp_sql_query Filename Extension on page A-2.
Server Directive
The Server directive defines the atp server class, which is named atp.pway in this
example. You could define multiple atp server classes. The left brace introduces the
subcommands for this Server directive.
Server /usr/tandem/webserver/atp/bin/atp.pway {
Environment Variables
The Env subcommands of the Server directive specify ATP environment variables.
For descriptions of these and other ATP environment variables, see ATP Environment
Var ia ble s on page 2-12.
Env SQL_STATEMENT_CACHE_SIZE=50
Env ATP_PAGE_CACHE_SIZE=0
Env TUXEDO_FTBL_CACHE_SIZE=0
Env ATP_TUXEDO_VERSION = 0