ngx_http_ssi_module

This module provides a filter which processes Server-Side Includes (SSI) in the input. The list of the supported commands for SSI is currently incomplete.

Example

location / {
    ssi  on;
}

Directives

ssi

syntax: ssi [ on | off ]

default: ssi off

context: http, server, location, if in location

Enables SSI processing.

ssi_silent_errors

syntax: ssi_silent_errors [on|off]

default: ssi_silent_errors off

context: http, server, location

Doesn't output "[an error occurred while processing the directive]", if an error occurs while processing the SSI.

ssi_types

syntax: ssi_types mime-type [mime-type ...]

default: ssi_types text/html

context: http, server, location

Enables SSI processing for MIME-types in addition to "text/html" types.

ssi_value_length

syntax: ssi_value_length length

default: ssi_value_length 256

context: http, server, location

Defines the allowed length of values for parameters used in SSI.

SSI Commands

Instruction format is the following

    <!--#  command parameter1=value parameter2=value... -->

The supported SSI commands are listed below:

Built-in variables

ngx_http_ssi_module supports two built-in variables:

References

Original Documentation

NginxHttpSsiModule (last edited 2008-01-26 15:42:45 by quodt)