What is the right place for sub_filter?

Hi!

My site runs php-cgi (via fastcgi) & nginx 1.4.4.
I need to replace www.domain refs to www1.domain ones.
Where to place sub_filter - in server{}, or “location /”, or “location ~
.php$”,…?

sub_filter www.domain www1.domain;
sub_filter_types *;

I tried all these places w/o success.

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,246736,246736#msg-246736

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs