I have a proxy_pass for a backend, but in this context, I should serve some static files that are stored in a directory. I`ve tried this:
server {
listen 8180;
location ~ ^/Backend?.(gif|jpg|png|jpeg|pdf|xls|xlsx)$ {
root /data/images;
}
location /Backend {
proxy_pass http://docker-conciliador;
}
}
But when I try the URL /Backend/12345.jpg
for example it didn`t work.
How can I make a regex for a specific location having this location a proxy_pass too???