Proxy_pass and rewrite
Rodrigo Serra Inacio
roinacio at gmail.com
Fri Aug 9 18:00:08 UTC 2013
Hi, I'm try to do a proxy_pass and rewrite rules like this:
location /directory/ {
proxy_pass http://some_url_to_proxy_pass/;
expires +10d;
}
It's working, but I need to repeat the /directory/ on the new url to work
...like this
http://testurl.com/directory/directory/foo/bar/
And I want just one /directory/foo/bar/...then a try a rewrite rule, like
this
location /directory/ {
proxy_pass http://some_url_to_proxy_pass/;
rewrite /directory/(.*) $1 break;
expires +10d;
}
But, isn't work
Some help, please.
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20130809/7343bdcb/attachment.html>
More information about the nginx
mailing list