Mastering Nginx

(Ron) #1

NGINX for the Developer


[ 172 ]

The directives included in the xslt module are summarized in the following table:


Table: HTTP XSLT module directives

Directive Explanation
xml_entities The path to the DTD that declares the
character entities referenced in the XML to be
processed.
xslt_param Parameters passed to the stylesheets, whose
values are XPath expressions.
xslt_string_param Parameters passed to the stylesheets, whose
values are strings.
xslt_stylesheet The path to an XSLT stylesheet used to
transform an XML response. Parameters may
be passed as a series of key/value pairs.
xslt_types Lists the MIME types of a response in
addition to text/xml in which a substitution
will be made. It may be * to enable all MIME
types. If the transformation results in an
HTML response, the MIME type will be
changed to text/html.

Using Server Side Includes


The ssi module is also a filter, and one of NGINX's most flexible. It enables the use
of Server Side Includes for processing logic embedded in a webpage. It supports a


series of commands that are controlled by the following directives:


Table: Server Side Includes directives

Directive Explanation
ssi Enables the processing of SSI files.
ssi_silent_errors Suppresses the error message normally output
when an error occurs during SSI processing.
ssi_types Lists the MIME types of a response in addition
to text/html in which SSI commands are
processed. It may be * to enable all MIME
types.
Free download pdf