# 子文件夹中内容未显示

**URL:** https://meta.discourse.org/t/content-are-not-getting-showing-with-subfolder/117034
**Category:** Support
**Tags:** subfolder
**Created:** [2019年五月7日 06:02 UTC](https://meta.discourse.org/t/content-are-not-getting-showing-with-subfolder/117034 "2019-05-07T06:02:28Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Muthukkumar](https://avatars.discourse-cdn.com/v4/letter/m/77aa72/32.png) [@Muthukkumar](https://meta.discourse.org/u/Muthukkumar)
#### Post date: [2019年五月7日 06:02 UTC](https://meta.discourse.org/t/content-are-not-getting-showing-with-subfolder/117034/1 "2019-05-07T06:02:28Z")

</div>

Hi Team,  
I have successfully setup the discourse and its working fine with the domain name. But when I have added the subfolder its not working, all the logos coming very big and I couldn’t see any content.  
below is my subfolder code in yaml.

```plaintext
- exec:
              cd: $home
              cmd:
                - mkdir -p public/community
                - cd public/community && ln -s ../uploads && ln -s ../backups
        - replace:
             global: true
             filename: /etc/nginx/conf.d/discourse.conf
             from: proxy_pass http://discourse;
             to: |
                rewrite ^/(.*)$ /community/$1 break;
                proxy_pass http://discourse;
        - replace:
             filename: /etc/nginx/conf.d/discourse.conf
             from: etag off;
             to: |
                etag off;
                location /community {
                   rewrite ^/community?(.*)$ /$1;
                }
        - replace:
             filename: /etc/nginx/conf.d/discourse.conf
             from: $proxy_add_x_forwarded_for
             to: $http_your_original_ip_header
             global: true

```

And root the url is :  
DISCOURSE\_RELATIVE\_URL\_ROOT: /community

Error:  
I got the 500 internal server error and 404 error in browser.

```plaintext
"Failed to load resource: the server responded with a status of 500 (Internal Server Error)"
"_ember_jquery-0ae86c6a7527a99c2b9b8a11521273bd9cb4f7d41bc546df081b7ee94f26d9c3.js:9851 POST http://mydiscourse.cloudapp.azure.com/community/message-bus/9eda601f4d94429aa5bbb21427de4194/poll 404 (Not Found)"

```

Note: is that because of “http://” just noted while past the error message here.  
Could some one tell me what I have missed here or do I need to add some other thing.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [2019年五月7日 06:11 UTC](https://meta.discourse.org/t/content-are-not-getting-showing-with-subfolder/117034/2 "2019-05-07T06:11:41Z")

</div>

Subfolder installs are a fairly advanced topic. Even with the CDCK hosting the complexity they introduce means they’re only supported for Enterprise customers, with an additional associated fee.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2019年五月8日 00:50 UTC](https://meta.discourse.org/t/content-are-not-getting-showing-with-subfolder/117034/3 "2019-05-08T00:50:56Z")

</div>

I will soon offer a subfolder installation service. You can contact me if you have a budget.

There are a bunch of things that could go wrong, as there are lots I pieces in play. It’s unclear whether you didn’t edit the stuff in your yml correctly or if you’re obscuring your domain name.

A 500 error generally throws an error that you could see in the rails log.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2022年九月4日 14:03 UTC](https://meta.discourse.org/t/content-are-not-getting-showing-with-subfolder/117034/4 "2022-09-04T14:03:13Z")

</div>



---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [2022年九月4日 20:23 UTC](https://meta.discourse.org/t/content-are-not-getting-showing-with-subfolder/117034/5 "2022-09-04T20:23:48Z")

</div>


