Welcome! Log In Create A New Profile

Advanced

Re: Problems with map + subfilter + proxy

Francis Daly
November 07, 2018 08:12PM
On Wed, Nov 07, 2018 at 08:47:15PM -0200, Jorge Pereira wrote:

Hi there,

> location /artifactory/ {
> sub_filter_types $subfilter_allowed_content_type; # the
> variable is filled up correctly
> #sub_filter_types "application/atom+xml"; # but, when
> use it hardcode. then it works fine.

If the documentation for a directive (available here at
http://nginx.org/r/sub_filter_types) does not say that the value can
contain variables, then the value probably does not process $variable
content.

> sub_filter "https://$host" http://$host"; # it works
> only when use sub_filter_types with hardcore value.

Compare with the documentation for this directive - http://nginx.org/r/sub_filter

> Conclusion: the variable it been filled up correctly, but the
> sub_filter_types looks to not process. Someone has any suggestion?

sub_filter_types does not read variables. If you set the type to the
string "$subfilter_allowed_content_type", sub_filter might take effect. (I
haven't tested, since it is not a useful case, I think.)

f
--
Francis Daly francis@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Problems with map + subfilter + proxy

Jorge Pereira November 07, 2018 05:48PM

Re: Problems with map + subfilter + proxy

Francis Daly November 07, 2018 08:12PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 130
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready