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
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;
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