lucianpls / mod_sfim

An apache httpd module that sends a static file for web requests that match a regexp. Includes pjson support.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mod_sfim AHTSE

An apache httpd module that sends back a static file for web requests that match a regexp. Adds one directive to the apache configuration file.

Building

Requires apache httpd and libapr to be available for linking and at runtime.

SendFileIfMatch file_name regexp mime-type

The file_name file will be sent as the response, with mime-type as the type, if the request matches the regexp. JSON-P is supported if the type is application/jsonp, in which case the response type will be application/json. If parameters are present in the request, the regexp will also take them into consideration. There can be multiple such directives in a given Location or Directory container, the first match will generate the response.

About

An apache httpd module that sends a static file for web requests that match a regexp. Includes pjson support.

License:Apache License 2.0


Languages

Language:C 94.5%Language:Makefile 5.5%