'nginx proxy_pass download page from other host

I need to download pdf file from other host.

For example:

mydomain.com/bill/55d5e947-edc4-44e0-bee4-c5ffacaf81dd/download

must download pdf file from

domain.com/bill/55d5e947-edc4-44e0-bee4-c5ffacaf81dd/download

my location is below, may be i'm missing something?

         location "/bill/([0-9a-zA-Z]{8})-([0-9a-zA-Z]{4})-([0-9a-zA-Z]{4})-([0-9a-zA-Z]{4})-([0-9a-zA-Z]{12})/download" {
                proxy_pass http://10.130.0.31:8088;
                proxy_set_header content-type "application/pdf";


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source