1

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.

closed as unclear what you're asking by Stephen Ostermiller Jul 29 '17 at 8:56

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 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.