Nginx configuration SSI 1. what is SSISSI: Server Side Include? It is a Server-Side web page creation technology. Most web servers (especially those based on Unix platforms), such as Netscape Enterprise Server, support SSI commands. The reason is: Before the page content is sent to the client, use the SSI command to include text, images, or code information to the webpage. For repeated content in multiple files, using SSI is a simple way to store the content into an include file without entering all the files. You can use a very simple statement to call the inclusion file, which instructs the Web server to insert content into an appropriate webpage. In addition, when a file is included, all changes to the content can be completed in one place. II. the following three options are required to configure SSI on nginx: ssi: The default value is off. When ssi is enabled, it is set to onssi_silent_errors: The default value is off, when an SSI File error is processed, the error prompt "[an error occurred while processing the directive]" is not output. Ssi_types: The default value is text/html. To support html, you do not need to set this sentence. To support shtml, you need to set three parameters: ssi_types text/shtml to http, server or location. III. instance [plain] server {listen 10.3.9.27: 80; server_name www.ball.com; location/{ssi on; ssi_silent_errors on; ssi_types text/shtml; index index.shtml; root/usr/local/web/wwwroot; expires 30d; access_log/data/logs/www.ball.com-access_log main ;}}