Proxy_pass and rewrite

2013-08-09 Thread Rodrigo Serra Inacio
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

proxy_cache seems not working with X-Accel-Redirect

2013-08-09 Thread gray
My config location ~ /cached/ { proxy_pass http://apache; proxy_cache cache; proxy_cache_valid 2h; proxy_cache_key "$host|$request_uri"; } location /htdocs_internal/ { internal;

Re: Poor performance when loading huge number of server section

2013-08-09 Thread Ruslan Ermilov
On Fri, Aug 09, 2013 at 01:41:49PM +0800, Anb wrote: > Hi there, > I got a problem when using nginx as a reverse proxy. Configurations > using per server policy to set upstream host. Nginx spends significant > time loading config files as while as virtual server inscreased to a > large number. He