[users@httpd] Re: Conditional response body modification

2014-04-25 Thread Doug Strick
mod_parp.c SetEnvIf HTTP_COOKIE (^|)CUST_TYPE=test parp /IfModule On Thu, Apr 17, 2014 at 3:01 PM, Doug Strick douglas.str...@gmail.comwrote: I've come up with the below config using mod_ext_filter which isn't desirable, but it's the only thing I've been able

[users@httpd] Re: Conditional response body modification

2014-04-25 Thread Doug Strick
In 2.4, it seems like you should be able to register mod_substitute via mod_filter. mod_filter has a match parameter that in 2.4 is an ap_expr expression, so it can ready basically anything floating around in the server. mod_filter can be pretty intimidating though. I really wish I could

[users@httpd] Re: Conditional response body modification

2014-04-17 Thread Doug Strick
intype=text/html enableenv=FILTER \ cmd=/bin/bash /apps/httpd/scripts/replace.sh Location / SetOutputFilter doug /Location *replace.sh* #!/bin/bash /bin/sed -r 's/http\:\/\//https\:\/\//g' On Wed, Apr 16, 2014 at 10:23 AM, Doug Strick douglas.str...@gmail.comwrote: Hello, I'm

[users@httpd] Conditional response body modification

2014-04-16 Thread Doug Strick
Hello, I'm looking for a way to modify the data on outgoing requests conditionally. I've tried using mod_substitute, but that appears to be an all or nothing module. The documentation for mod_filter says it can be invoked on environment variables, but it's not exactly clear on the valid syntax