February 2018
Beginner to intermediate
348 pages
9h 40m
English
The last, and probably least (for once), of the SSI commands offered by Nginx is the config command. It allows you to configure two simple parameters.
First, the message that appears when the SSI engine faces an error is malformed tags or invalid expressions. By default, Nginx displays [an error occurred while processing the directive]. If you want it to display something else, enter the following:
<!--# config errmsg="Something terrible happened" -->
Additionally, you can configure the format of the dates that are returned by the $date_local and $date_gmt variables using the timefmt parameter:
<!--# config timefmt="%A, %d-%b-%Y %H:%M:%S %Z" -->
The string you specify here is passed as the format string of the strftime C function. ...