Nginx redirection
Enrico
nginx-forum at forum.nginx.org
Wed May 16 06:22:20 UTC 2018
Hi,
I have a nginx server (called mynginxserver) and need to redirect some urls
:
I want to have all url with the string tso:
http://www.mynginxserver.com/XXXXXXtsoXXXXX
redirected to
https://myserver.com/XXXXXXtsoXXXXX
if the string tso is in the url and redirect to
http://www.mynottsoserver.com/XXXXXXXXXXX
if the string tso is not present.
XXXXXXtsoXXXXX and XXXXXXXXXXX must be keep.
The string "tso" can ben anywhere in the last parameter (tsoXXXXX,
XtsoXXXX, XXXXtso, etc.)
I think i need to use the location and rewrite directive but don't know how
to do that.
Thanks for your help
Posted at Nginx Forum: https://forum.nginx.org/read.php?2,279813,279813#msg-279813
More information about the nginx
mailing list