FAQ.


So what is ModTrigger?

Where do I get it from?

What sort of license does it have?

How can I make suggestions for it?

How can I report a bug?

How do I install it?

How do I use it?

What are the directives?

What environmental variables exist

So what is ModTrigger?

The point of mod_trigger is to give you hooks into each Apache request to launch triggers if certain actions occur. You specify the actions through directives that mod_trigger adds to the webserver.


Where do I get it from?

You can get it from either here via the web or here via ftp.

What sort of license does it have?

You are pretty much free to use it as you please. Check out the License file with the distribution for more details.

How can I make suggestions for it?

Send email to brian@tangent.org.


How can I report a bug?

Enter your bug here here.


How do I install it?

Read the INSTALL file that comes along with the module.


How do I use it?

Mod_Trigger is enabled by "TriggerEngine On". After that it is up to you to add triggers.


So what are the directives?

  • TriggerEngine - On or Off (Off by default). This enables the trigger engine.
  • TriggerLog - Triggers will send a log message to the error log when found.
  • TriggerHandler - Supply a handler and then either a script or uri to call if the handler is found.
  • TriggerURI - Supply a URI and then either a script or uri to call if the URI is found.
  • TriggerAgent - Supply a browser agent and then either a script or uri to call if the agent is found.
  • TriggerReferer - Supply a referer and then either a script or uri to call if the referer is found.
  • TriggerMime - Supply a mime-type and then either a script or uri to call if the mime-type is found.
  • TriggerAddress - Supply an IP address and then either a script or uri to call if the address is found.
  • TriggerUser - Supply a username (REMOTE_USER) and then either a script or uri to call if the user is found.
  • TriggerIdent - Supply an ident and then either a script or uri to call if the ident is found.
  • TriggerPathInfo - Supply a pthinfo and then either a script or uri to call if the pathinfo is found.
  • TriggerAccept - Supply an accept header and then either a script or uri to call if the accept header is found.
  • TriggerCookie - Supply a cookie name and then either a script or uri to call if the cookie is found.

  • What environmental variables exist for called URI?

  • TRIGGER_SCRIPT_NAME
  • TRIGGER_PATH_INFO
  • TRIGGER_QUERY_STRING
  • TRIGGER_FILENAME