Content are not getting showing with Subfolder

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.

- exec:
              cd: $home
                - 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 :

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

"Failed to load resource: the server responded with a status of 500 (Internal Server Error)"
"_ember_jquery-0ae86c6a7527a99c2b9b8a11521273bd9cb4f7d41bc546df081b7ee94f26d9c3.js:9851 POST 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.

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.

1 Like

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.