sammyenigma / nginx-notice Goto Github PK
View Code? Open in Web Editor NEWThis project forked from kr/nginx-notice
Ancient nginx plugin; probably not useful to anyone.
This project forked from kr/nginx-notice
Ancient nginx plugin; probably not useful to anyone.
Greetings! This is the README for nginx-notice version 2. ______________________________________________________________________ About Nginx-notice is an nginx module designed to display notices of downtime, ignoring the usual semantics of HTTP methods GET, PUT, and POST, and returning a fixed response body for every request. It was originally written for the Causes on Facebook application, since every Facebook request is a POST (regardless of the intended effects, if any, on server state). ______________________________________________________________________ Installation To compile this module, you must recompile nginx itself. Once you are comfortable with configuring and compiling nginx, you can use this module by adding "--add-module=/path/to/this/directory" to your configure options. For example, to compile nginx with the default options plus this module, you could type: $ ./configure --add-module=/path/to/this/directory Then compile and install nginx as you normally would. ______________________________________________________________________ Configuration Once the module is installed, you will have two new configuration directives. Example: server { if (-f /path/to/notice.txt) { rewrite ^(.*)$ /notice.txt; break; } location = /notice.txt { notice /path/to/notice.txt; notice_type text/plain; break; } } For the "notice" directive: * syntax: notice path * default: None * context: location Enables display of the maintenance notice for this location. For the "notice_type" directive: * syntax: notice_type type * default: text/html * context: location Sets the content-type of the notice for this location. ______________________________________________________________________ Bugs * There is a hard limit on the size of the notice that this module will send, by default 100KiB. You can change this by editing the source file. * This module does not log errors. ______________________________________________________________________ That's all. Have fun! kr
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.