January 11, 2017 11:10AM
Thanks for your help but there is still something I don't understand. I have dynamic access for resources. For me, I have 3 different locations in 2 servers and your conf only contains 2. I have my location of the client request, the location of the X-Accel-Redirect and the location where caching happens.

I tried this but it's not working. I got a 200 with an empty body.

server {
listen 80
location /data {
proxy_pass http://127.0.0.1:8081;
}

location /protected_data {
internal;
alias /var/local/data/;
}
}
listen 8081 {
location / {
proxy_pass http://127.0.0.1:8000; #upstream server
proxy_cache my_cache;
proxy_ignore_headers X-Accel-Redirect;
}
}

What am I doing wrong?
Subject Author Posted

proxy_cache seems not working with X-Accel-Redirect

gray August 09, 2013 06:20AM

Re: proxy_cache seems not working with X-Accel-Redirect

Maxim Dounin August 16, 2013 10:34PM

Re: proxy_cache seems not working with X-Accel-Redirect

bdesemb January 11, 2017 07:39AM

Re: proxy_cache seems not working with X-Accel-Redirect

Maxim Dounin January 11, 2017 09:34AM

Re: proxy_cache seems not working with X-Accel-Redirect

bdesemb January 11, 2017 11:10AM

Re: proxy_cache seems not working with X-Accel-Redirect

bdesemb January 11, 2017 12:23PM

Re: proxy_cache seems not working with X-Accel-Redirect

Maxim Dounin January 11, 2017 12:44PM

Re: proxy_cache seems not working with X-Accel-Redirect

bdesemb January 12, 2017 07:54AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 264
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready