We are setting up nginx with kubernetes for formio. We need the .com/ to point to the api server, and the .com/files/ to point to the pdf server. Here is the ingress config:

```
  paths:
  - backend:
      serviceName: formio
      servicePort: 80
    path: /
  - backend:
      serviceName: formio-files
      servicePort: 4005
    path: /files/(.*)$

```

We have it setup that our PDFs are being stored in the path like /files/pdf/filename.
The issue is that whole path after /files/ also gets redirected to the PDF server, instead of just stopping at /files/