Nginx Ingress - how to set redirect to external site if there is no matching route?

Solution 1:

The resolution to the problem was the addition of the 'Host: hostname' header in the curl command.

The service that was handling the request needed Host: hostname header to properly reply to this request. After the hostname header was provided the respond was correct.

Links:

Curl docs

Ingress docs