Reverse proxy question
Saint Michael
venefax at gmail.com
Thu Jun 23 05:19:06 UTC 2022
I am proxying a website where there is a link like this:
https://arvamus.postimees.ee/7550782/lauri-vahtre-tead-kull-kes-utles-n-tahega-sona-ja-siis-juhtus-ei-voi-oelda-mis#_ga=2.218428057.1478980589.1655961279-1635368780.1655961270
my new site is
https://postimees.oneye.us
I have these substitution rules:
subs_filter "https://www.postimees.ee" "https://postimees.oneye.us" gir break;
subs_filter "www.postimees.ee" "postimees.oneye.us" gir break;
subs_filter "http://(.*).postimees.ee/(.*)"
"http://postimees.oneye.us/$1/$2" gir break;
but they don't process the link above.
How do you exactly write the rules, or rewrite rules, in cases like this?
More information about the nginx
mailing list