On 09/14/2011 02:58 PM, Arvid Piehl Lauritsen Böttiger wrote:
Hello I think I have a very strange problem. I'm trying to use ext_filter to rewrite some contenton the fly from apache.
...
I am quite lost here because I have no idea what is going on.
...Firefox and other browsers will (most likely) send an "Accept-Encoding: gzip,deflate"-header, which causes your data to be compressed before server sends it to the client.
Regular GET requests will show this difference, by appending the proper headers as such:
$ GET http://sn.im/v3luh | grep -Ei "201. P" <p>2012 PSI</p>$ GET -H "Accept-Encoding: gzip,deflate" http://sn.im/v3luh | zgrep -Ei "201. P"
<p>2011 PSI</p>Your page running the "It Works" example doesn't deflate its output (gives no "Content-Encoding: gzip" in response-headers).
Could it be that your apache is running mod_deflate before ext_filters?That would cause "sed" to fail its substitutions since it would be working against compressed data, not clear text.
/Björn --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx