June 27, 2017 11:12AM
Francis,

The /data root was an example, in my case it's /v/

What I want to do is:

- get a request like /v/c85320d9ddb90c13f4a215f1f0a87b531ab33310
- proxy that to my back-end which tells nginx to serve a certain file (X-Accel-redirect).
- I want to cache this file as the first access is expensive. (I want to cache *the file*, other requests can end up pointing to the same file, that's what I want to speed up).

You are right that I'm not using proxy_pass; as my back-end is served by uwsgi I'm using uwsgi_pass.
Subject Author Posted

proxy_cache and X-Accel-Redirect

deivid__ June 26, 2017 01:39PM

Re: proxy_cache and X-Accel-Redirect

pbooth June 26, 2017 03:16PM

Re: proxy_cache and X-Accel-Redirect

Francis Daly June 26, 2017 07:30PM

Re: proxy_cache and X-Accel-Redirect

deivid__ June 27, 2017 11:12AM

Re: proxy_cache and X-Accel-Redirect

Francis Daly June 28, 2017 08:52AM

Re: proxy_cache and X-Accel-Redirect

Igor A. Ippolitov June 27, 2017 02:54AM

Re: proxy_cache and X-Accel-Redirect

deivid__ June 27, 2017 11:49AM

Re: proxy_cache and X-Accel-Redirect

Igor A. Ippolitov June 27, 2017 12:18PM

Re: proxy_cache and X-Accel-Redirect

deivid__ June 27, 2017 12:56PM

Re: proxy_cache and X-Accel-Redirect

pbooth June 27, 2017 01:22PM

Re: proxy_cache and X-Accel-Redirect

deivid__ June 27, 2017 02:27PM

Re: proxy_cache and X-Accel-Redirect

Igor A. Ippolitov June 28, 2017 05:30AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 299
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