February 2018
Beginner to intermediate
348 pages
9h 40m
English
A potential source of sub-requests is the Server Side Include (SSI) module. The purpose of SSI is for the server to parse documents before sending the response to the client in a somewhat similar fashion to PHP or other preprocessors.
Within a regular HTML file (for example), you have the possibility to insert tags corresponding to commands interpreted by Nginx:
<html> <head> <!--# include file="header.html" --> </head> <body> <!--# include file="body.html" --> </body> </html>
Nginx processes these two commands; in this case, it reads the contents of head.html and body.html and inserts them into the document source, which is then sent to the client.
Several commands are at your disposal; they are detailed in the SSI ...
Read now
Unlock full access