# Malformed URL being returned in xmds.php?v=5&method=requiredFiles

**URL:** https://community.xibo.org.uk/t/malformed-url-being-returned-in-xmds-php-v-5-method-requiredfiles/19246
**Category:** Get Help
**Created:** [June 15, 2019, 10:05am UTC](https://community.xibo.org.uk/t/malformed-url-being-returned-in-xmds-php-v-5-method-requiredfiles/19246 "2019-06-15T10:05:40Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Animesh](https://community.xibo.org.uk/letter_avatar_proxy/v4/letter/a/5e9695/32.png) [@Animesh](https://community.xibo.org.uk/u/Animesh)
#### Post date: [June 15, 2019, 10:05am UTC](https://community.xibo.org.uk/t/malformed-url-being-returned-in-xmds-php-v-5-method-requiredfiles/19246/1 "2019-06-15T10:05:40Z")

</div>

On Windows client files are not getting downloaded.  
In the debug logs the below error is coming:

FileAgent\_media\_Id\_1|14-06-2019 18:39:15|Info|FileAgent - Run|Web Exception in Run: The remote name could not be resolved: ‘xibodocker200\_cms-web\_1’

When i check what response the server is sending, it is returning the response as below:

\<file type=“media” id=“7” size=“12150” md5=“8d72e0c1775cba38c44bf02aee0c8d83” path=“ **_http://xibodocker200\_cms-web\_1/xmds.php_**?file=014845dfc3573fe03961e194ad36f0fc999dc0fbf2d3e0db39e0c34905dea09d&amp;displayId=1&amp;type=M&amp;itemId=7” saveAs=“xibo-text-render.js” download=“http”/\>

---

<div class="post-metadata">

### Author: ![Animesh](https://community.xibo.org.uk/letter_avatar_proxy/v4/letter/a/5e9695/32.png) [@Animesh](https://community.xibo.org.uk/u/Animesh)
#### Post date: [June 17, 2019, 1:34pm UTC](https://community.xibo.org.uk/t/malformed-url-being-returned-in-xmds-php-v-5-method-requiredfiles/19246/2 "2019-06-17T13:34:25Z")

</div>

Resolved now !

This issue was due to incorrect configuration of nginx reverse proxy.

nginx was not forwarding the http\_host and scheme(http/https) related headers due to which the CMS server was perceiving the host as _ **xibodocker200\_cms-web\_1** _ and scheme as http which led to this malformed/internal URL for file download.

Adding the following settings in nginx revers proxy and a restart after clearing the cache resolved the issue.

```
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
```

---

<div class="post-metadata">

### Author: ![system](https://community.xibo.org.uk/uploads/default/original/2X/a/a8759c2d8cc561474733895ac75beeb830f5d8ca.png) [@system](https://community.xibo.org.uk/u/system)
#### Post date: [March 4, 2020, 5:14pm UTC](https://community.xibo.org.uk/t/malformed-url-being-returned-in-xmds-php-v-5-method-requiredfiles/19246/3 "2020-03-04T17:14:07Z")

</div>


