<div dir="ltr">Hi, I'm try to do a proxy_pass and rewrite rules like this:<div><br></div><div><div>location /directory/ {</div><div>                        proxy_pass <a href="http://some_url_to_proxy_pass/">http://some_url_to_proxy_pass/</a>;</div>
<div>                        expires +10d;</div><div>                }</div></div><div><br></div><div>It's working, but I need to repeat the /directory/ on the new url to work ...like this</div><div><a href="http://testurl.com/directory/directory/foo/bar/">http://testurl.com/directory/directory/foo/bar/</a></div>
<div><br></div><div>And I want just one /directory/foo/bar/...then a try a rewrite rule, like this</div><div><br></div><div><div>location /directory/ {</div><div>                        proxy_pass <a href="http://some_url_to_proxy_pass/">http://some_url_to_proxy_pass/</a>;</div>
<div>                        rewrite /directory/(.*) $1 break;</div><div>                        expires +10d;</div><div>                }</div></div><div><br></div><div>But, isn't work</div><div>Some help, please.</div>
<div>Thanks</div></div>