Skip to content

Commit 7b11655

Browse files
committed
Added TODO section discussing how to make this solution more flexible with a catchall RewriteRule and more processing pushed onto the script.
1 parent 011e2c4 commit 7b11655

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,7 @@ Rewrite Expiration
108108
Rather than having a human have to remember to edit a file, simply give the keys an expire date, after or during a SET operation. No more reliance on human curation of humungous ".conf" files. If any site that is being redirected to should only have rewrites for certain period, give the keys an expiration at the outset, then let Redis do the job of expiry.
109109

110110

111+
TODO
112+
====
113+
114+
One way to envision greater flexibility for this, would be not having to edit httpd.conf to add new RewriteMaps. It may be the case that a general RewriteRule is configured, and the logic of breaking this up would be put onto the invoked script. It could take the first grouping as the "prefix" for a key, then use the second (or combo of subsequent) groupings to figure out what the rest of a keyname. It is suggested that the script that is used for RewriteMap be as simple as possible; if it is slow to process, the rewriting will be slow as well.

0 commit comments

Comments
 (0)