Welcome! Log In Create A New Profile

Advanced

Reverse proxy question

Saint Michael
June 23, 2022 01:20AM
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?
_______________________________________________
nginx mailing list -- nginx@nginx.org
To unsubscribe send an email to nginx-leave@nginx.org
Subject Author Posted

Reverse proxy question

Saint Michael June 23, 2022 01:20AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 51
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