February 2018
Beginner to intermediate
348 pages
9h 40m
English
The main command of the SSI module is obviously the include command. It comes in two different fashions.
First, you are allowed to make a simple file include:
<!--# include file="header.html" -->
This command generates an HTTP sub-request to be processed by Nginx. The body of the response that was generated is inserted instead of the command itself.
The second possibility is to use the include virtual command:
<!--# include virtual="/sources/header.php?id=123" -->
This also performs a sub-request to the server; the difference lies within the way that Nginx fetches the specified file (when using include file, the wait parameter is automatically enabled). Indeed, two parameters can be inserted within the include command tag. ...
Read now
Unlock full access