Hi, everyone!Sorry, I'm newbie in apache. After a few days of search. We use apache2.4 for our project.For some improve of our forward proxy compatibility. As we need hide some content from our client.So we use forward proxy and filter module. First we use nginx as the proxy. And some key config below: location / { resolver 192.168.10.1; proxy_pass $scheme://$http_host$request_uri; sub_filter thatsneedchange thatschangethat; sub_filter_types application/json application/xhtml+xml text/html text/plain; sub_filter_once off; } so this can filte and replace the content on website for our client on the internet. But we met some problem can't resolve: Some of clients application didn't support the standard RFC.As we found the sub_filter module will delete every content-length header of the response. As the lack of the content-length, our client wouldn't accept that response. So we came up the apache module filter. As we find the document This directs There are two forms of this directive. With three arguments, it applies specifically to a filter-name and a provider-name for that filter. With two arguments it applies to a filter-name whenever the filter runs any provider. proto-flags is one or more of
|