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