Tag Archives: proxy_pass

nginx – try files on multiple named location or server

Let’s start from the simplest case: How to serve files locally first, and proxy the request to other backend/internal server if not found? listen; … location /static/ { try_files $uri @static_svr1; } location @static_svr1{ proxy_pass$uri; } That’s simple! … Continue reading

Posted in System Administration, Web | Tagged , , , , | 2 Comments