yaoweibin / ngx_http_substitutions_filter_module

a filter module which can do both regular expression and fixed string substitutions for nginx
607 stars 213 forks source link

Back references do not work #6

Closed gnif closed 10 years ago

gnif commented 10 years ago

Attempting to write a replacement such as the following does not work:

subs_filter http://example.com/(.*\.(gif|jpeg|png)) http://static.example.com/\1;

rahul286 commented 10 years ago

\1 or $1 ?

gnif commented 10 years ago

doh! yeah, should have tried that, will give that a go.

gnif commented 10 years ago

Confirmed, works fine, closing this issue.