Skip to content

t18d/nG-SetEnvIf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 

Repository files navigation

nG-SetEnvIf

a project of Open Source by Tonkünstler-on-the-Bund

 
 
 
nG-SetEnvIf was created as a fork of the nG Firewall that replicates its functionality in Apache httpd using mod_setenvif and tracks upstream release. The trade-off is between the efficiency gained over mod_rewrite and having to defer to any existing rewrite rules (eg for permalink settings).

The focus being on performance, no logging facility is provided in addition to httpd's native logs. Backreference support has been removed to minimise memory footprint.

 

Note

httpd's default behaviour (eg MergeSlashes) overrides certain rules.

Warning

Test with mod_rewrite before deploying nG-SetEnvIf.

 
Use case: httpd.conf
Requires: mod_setenvif, mod_authz_core, mod_log_config
Documentation: Using mod_rewrite to control access
Known issues & recipes: See project Wiki
Upstream: 8G v1.2, courtesy of Jeff Starr
Idea for fork: Port these rules to Cloudflare's free-tier WAF

 


Our Sponsor: