Nginx Series Tutorials: notice modules

Source: Internet
Author: User
Keywords Nginx Series Tutorials Notice
Tags aliyun configuration default default value display get html http

Nginx-notice is a Nginx module designed to ignore the common semantics of the HTTP method post and put, and if they get requests, process those requests and return a fixed response body that does not depend on any request URI. It is used to display notification of failure times to the broker and send post requests even if they do not execute, such as http://www.aliyun.com/zixun/aggregation/1560.html ">facebook Platform Canvas page callback." The module was originally designed for Facebook applications.

Requirements demand

Nginx Source code, passed Nginx version 0.5.24 Test.

Source code Source

Open this link to get: https://github.com/kr/nginx-notice.

Revisit configuration

Once the module is installed successfully, you will get two new configuration instructions.
Configuration Example:

server {
if (-f/path/to/notice.txt) {
Rewrite ^ (. *) $/notice.txt;
Break;
}

Location =/notice.txt {
Notice/path/to/notice.txt;
Notice_type filetype;
Break;
}
}

Instruction notification:

Syntax Notice path

Default Value None

Scopes Location

Enable this location to display maintenance notifications.

Directive Notice_type:

Syntax Notice_type type

Default value HTML

Scopes Location

Sets the content type for this location notification.

Bugs Vulnerability

• The notification size sent by this module is a hard limit, with the default 100KiB, you can change the limit by editing the source file.
• The module has no log errors.

Changes Update description

June 21, 2007

• Bug FIX: Closes the notification file after reading.

June 12, 2007

• First release

Related Article

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.