mod_maybe

Intro

mod_maybe is an apache 2.x module that adds a missing functionality in satisfying HTTP requests.

Since we know Apache 2.x is a really stable software, and responds correctly to any HTTP request you can make to it, we needed to offer a way to avoid this from happening, for several reasons.

Maybe you want to drop too loaded server's requests, you want to save resources, or more often remove that safe sensation that Apache usually gives.

In this age of uncertainty we found that it was necessary to influence with that even the most secure service we could count on.

From a business point of view you need some clues, often, to demonstrate that a system is not reliable or it does not work properly. In these cases mod_maybe is what you are looking for. Since is not reliable by design, you can demonstrate pretty often how you server (running this module obviously), does not respond as Apache should.

It was a missing piece for this web server, so we felt it was needed.

License

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Download

Installation

make make install

CFLAGS=-arch ppc -arch i386 -arch ppc64 -arch x86_64

Configuration

AddOutputFilterByType MAYBE text/html # MaybeEnabled - active/deactive the module # The parameter can be: 'off', 'on', 'maybe' or 'please' # - off: the module is disabled # - on: the module is enabled # - maybe: ... the module is disabled, maybe. # - please: ... the modules is enabled but not too much. MaybeEnabled on # MaybeStatusCode - the status code if the page is not available # It is optional. The default value is: 503 #MaybeStatusCode 300 # MaybeMethod - what is the 'maybe' function? Well... I don't know, yet. # So you can choose one of these options: # - stdlib: (default) random (stdlib.h) # - dev: it uses /dev/random, /dev/srandom or /dev/urandom #MaybeMethod dev

Author

Mac OS X users, add this line into 'Makefile':

Andrea Marchesini - baku _at_ apache _dot_ org

url: http://www.autistici.org/bakunin/

Special thanks: