Judging based on args in nginx request, rewriting url problem
世界只因有你
世界只因有你 2017-05-16 17:15:45
0
2
686

Hello, please ask about the jump issue:
When there is a request for the following URL

http://www.abc.cn/proxy?jump=http://ay.abc.cn/uopt/draw/index&code=123&_c=kuyin&state=3

Ifjumpappears in the link, jump to the URLafterjump=, as above, the result after rewriting is
http ://ay.abc.cn/uopt/draw/index&code=123&_c=kuyin&state=3

世界只因有你
世界只因有你

reply all (2)
洪涛

nginx can do it. Just make sure $arg_jump is not empty and rewrite it. However, I also think it should not be done by nginx. There is a security issue. Is the jump address safe?

    迷茫

    Isn’t it better and simpler to do this with code? . .

      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!