sub_filter not working on JSON file

Dmitry Volyntsev xeioex at nginx.com
Thu Aug 2 13:49:49 UTC 2018



On 02.08.2018 16:46, Friscia, Michael wrote:
> I’m trying to figure out why my sub_filter is not working on a JSON 
> file. I do have application/json and text/json listed in the 
> sub_filter_types but the simple string replace is not happening. It 
> causes me to think that for whatever reason, Nginx is not seeing this 
> file as JSON. Is there a way to output what mime type the file from the 
> upstream server is so I can make sure I have the right filter type?
> 
> Or, is there something I should also be doing to make the sub_filter 
> work on a JSON file?
> 

Hi,

Do not forget to configure sub_filter_types appropriately.



> ___________________________________________
> 
> Michael Friscia
> 
> Office of Communications
> 
> Yale School of Medicine
> 
> (203) 737-7932 - office
> 
> (203) 931-5381 - mobile
> 
> http://web.yale.edu <http://web.yale.edu/>
> 
> 
> 
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
> 


More information about the nginx mailing list