# Los archivos PDF en el mismo servidor no muestran una onebox con la URL de subdominio

**URL:** <https://meta.discourse.org/t/pdf-files-on-same-server-dont-show-onebox-with-subdomain-url/100472>\
**Category:** Product Support\
**Created:** [25 Octubre, 2018 16:13 UTC](https://meta.discourse.org/t/pdf-files-on-same-server-dont-show-onebox-with-subdomain-url/100472 "2018-10-25T16:13:32Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Rocancourt](https://avatars.discourse-cdn.com/v4/letter/r/7c8e57/32.png) [@Rocancourt](https://meta.discourse.org/u/Rocancourt)\
**Post date:** [25 Octubre, 2018 16:13 UTC](https://meta.discourse.org/t/pdf-files-on-same-server-dont-show-onebox-with-subdomain-url/100472/1 "2018-10-25T16:13:32Z")

</div>

Hi,

Firstly, congratulation for this open source project.

I want make clean display for local pdf files with onebox. I saw that is not to possible with attachment, so i link pdf files from url on same server.

With or without whitelist internal hosts, That work with domains but i don’t see onebox for pdf files from subdomains url (my discourse url is on a subdomain). For my tests, All domains/subdomains redirect on the same server.

 ![discourse](https://global.discourse-cdn.com/meta/original/3X/8/b/8be60412ff36b8debc4bb95422b92357729fe454.png)  
(_On test screen, only domains display onebox_)

I have read some posts about this, but i don’t understand the problem :

> [@Internal URL no longer oneboxing](https://meta.discourse.org/t/internal-url-no-longer-oneboxing/64208):
>
> At some point in the last 2 days internal URLs stopped oneboxing on my instance. I’m up to date with tests-passed as of 1:15 AM EST 6/9/17. There are the errors I’m seeing in the console when a post with an internal URL is loaded. There do not appear to be any related errors in /logs.

[https://meta.discourse.org/t/onebox-domains-whitelist-and-subdomains/40884](https://meta.discourse.org/t/onebox-domains-whitelist-and-subdomains/40884)

How i can fix it ?

Thanks,

PS : Link work for subdomain, i can see pdf file, that’s just display problem for onebox on content.

---

_[View the full topic](https://meta.discourse.org/t/pdf-files-on-same-server-dont-show-onebox-with-subdomain-url/100472)._
