https://github.com/isometry/rereplace
Apache HTTPD RewriteMap driver
https://github.com/isometry/rereplace
Last synced: about 1 year ago
JSON representation
Apache HTTPD RewriteMap driver
- Host: GitHub
- URL: https://github.com/isometry/rereplace
- Owner: isometry
- Created: 2020-08-24T19:10:16.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-24T19:10:44.000Z (over 5 years ago)
- Last Synced: 2025-01-16T20:28:37.811Z (over 1 year ago)
- Language: C
- Size: 8.79 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
ReReplace v1.0
- Robin Breathe, 2004/01/13
Reads in a configuration file with name "argv[0].map", lines in the
following format:
^$
Back-references are allowed in PERL style, e.g.:
^www/(foo|bar)$ http://old/$1
Beware config file is parsed by sscanf ("%s %s"), with buffer checking.
Once loaded loops on STDIN translating to ,
returning NULL when there is no match.
A of "-" will return NULL (as if there had been no match).
Before each replace, the configuration file is checked for changes
(by mtime), so runtime updates are recognised immediately without HUP.
Any non-standard characters in the input are %XX encoded in the output.