Imagine the following situation: I have a distant server for a website. And I have local servers with a reverse proxy where large files (like videos) are uploaded at off-peak time.

Now I want the reverse proxy to serve a requested file from the local filesystem if the file exists, or from the distant server otherwise. Is there a simple solution to achieve this ?

edit: For the moment i'm using nginx, but it can be changed.

  • What server are you using with the proxy? Apache with mod_proxy? – Stephen Ostermiller Jul 28 '17 at 16:18
  • This could be done from the web server. Before making assumptions, which web server are you using? – DKing Jul 28 '17 at 16:19
  • Please edit your question to include the requested information. – Stephen Ostermiller Jul 29 '17 at 8:57

Browse other questions tagged or ask your own question.