httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Strick <>
Subject [users@httpd] Re: Conditional response body modification
Date Thu, 17 Apr 2014 22:01:02 GMT
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 to come up with so far.
 It's not working exactly yet.  Any suggestions?


*Inside VirtualHost:*

ExtFilterDefine doug mode=output intype=text/html enableenv=FILTER \

cmd="/bin/bash /apps/httpd/scripts/"

<Location />

  SetOutputFilter doug




/bin/sed -r 's/http\:\/\//https\:\/\//g'

On Wed, Apr 16, 2014 at 10:23 AM, Doug Strick <>wrote:

> 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 for those variables.  Basically, I'm looking for a way to change all
> links from HTTP to HTTPS in my outgoing responses for users with a specific
> cookie.  Any suggestions?  Thanks

View raw message