[prev in list] [next in list] [prev in thread] [next in thread] 

List:       nginx
Subject:    Reverse proxy question
From:       Saint Michael <venefax () gmail ! com>
Date:       2022-06-23 5:19:06
Message-ID: CAC9cSOCRQ1+S-MO9uZU81T2vEFMLN9WvmdPA+Ad=DohkEhzSPQ () mail ! gmail ! com
[Download RAW message or body]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic