Slide 31
Slide 31 text
# function REDIS (cmd) { ... }
RewriteMap REDIS "prg:redis-cli --raw"
# if url == "/index.html"
# redirect "/404.html"
RewriteRule ^/index.html /404.html [L,P]
# else if
# proxy "/app/...", "http://app/REDIS(app)"
RewriteRule ^([^\/]*)/(.*) ${REDIS:GET\ $1}/$2 [L,P]