Sun Java System Web Server 6.1 SP7 FastCGI Plug-in Release Notes

Server Application Functions (SAFs)

The FastCGI plug-in provides the following Server Application Functions (SAFs):

The various parameters and error-reason strings for the FastCGI SAFs are described in the following sections:

auth-fastcgi

The auth-fastcgi SAF is used in a PathCheck directive. This SAF is used to specify the FastCGI server application to be used for authorization.

The auth-fastcgi PathCheck SAF sends the request to the specified Authorizer FastCGI application. If the application has returned a status code of 200, the authorization has succeeded and the Web Server proceeds with request execution. Otherwise, the response that was sent by the FastCGI application is sent back to the user-agent.

The auth-fastcgi SAF is optional and should only be used to forward the requests to an authorizer FastCGI application.

For a list of parameters accepted by auth-fastcgi SAF, see FastCGI SAF Parameters.

The following obj.conf code example demonstrates the use of auth-fastcgi:

PathCheck fn="auth-fastcgi" app-path="/foo/bin/php" bind-path="fooUDS"

On the first request to the auth-fastcgi, FastCGI plug-in creates the FastCGI authorizer application processes and sends the request for evaluation.

responder-fastcgi

The responder-fastcgi SAF forwards a request to a FastCGI application that acts as a Responder, for further processing. responder-fastcgi sends the request data to the listener onto which the app-path application processes are listening. Once the application responds to the request, service-fastcgi process is the response headers before sending them back to the user-agent.

For a list of parameters accepted by responder-fastcgi SAF, see FastCGI SAF Parameters.

The following obj.conf code example demonstrates the use of responder-fastcgi:

Service fn="responder-fastcgi" app-path="/foo/bin/perl" bind-path="fooPerl"

filter-fastcgi

The filter-fastcgi SAF forwards a request to a FastCGI application that acts as a Filter, for further processing. A filter application receives the information associated with an HTTP request plus additional data from a file stored on the server, and generates a filtered version of the data stream as the response.

filter-fastcgi sends the request data in FastCGI record format to the application specified by app-path. Once the application responds to the request, filter-fastcgi process is the response headers before sending them to the user-agent.

For a list of parameters accepted by filter-fastcgi SAF, see FastCGI SAF Parameters.

The following obj.conf code example demonstrates the use of filter-fastcgi:

Service type="magnus-internal/perl" fn="filter-fastcgi" app-path="/foo/bin/perl" bind-path="fooPerl"

error-fastcgi

The error-fastcgi SAF is called when the FastCGI plug-in encounters an error. This is used to display a specified page or URL.

For a list of parameters accepted by error-fastcgi SAF, see FastCGI SAF Parameters.

The following obj.conf snippet demonstrates the use of error-fastcgi:

Error fn="error-fastcgi" error-reason="Fastcgi Connection Error" error-url="http://www.foo.com/errorPage1.html"

FastCGI SAF Parameters

FastCGI plug-in SAFs auth-fastcgi and responder-fastcgi both accept the following parameters unless otherwise mentioned explicitly:


Note –

Parameters chroot, user, group and nice are applicable to only UNIX platforms. On Windows platforms, these parameters are ignored.


The error-fastcgi SAF accepts the following parameters:

FastCGI SAF Error Reason Strings

Here is the list of valid error-reason strings: