Nginx configuration SSI

Source: Internet
Author: User

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 ;}}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.