# Blank Page After installing Discourse on Subfolder

**URL:** <https://meta.discourse.org/t/blank-page-after-installing-discourse-on-subfolder/96112>\
**Category:** Self-hosting\
**Created:** [31.Август.2018 19:18:05 UTC](https://meta.discourse.org/t/blank-page-after-installing-discourse-on-subfolder/96112 "2018-08-31T19:18:05Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![john3](https://avatars.discourse-cdn.com/v4/letter/j/ed655f/32.png) [@john3](https://meta.discourse.org/u/john3)\
**Post date:** [31.Август.2018 19:18:05 UTC](https://meta.discourse.org/t/blank-page-after-installing-discourse-on-subfolder/96112/1 "2018-08-31T19:18:05Z")

</div>

Hey!

I am trying to setup discourse on a subfolder. Followed the [how-to](https://meta.discourse.org/t/subfolder-support-with-docker/30507) but I get a blank page with 404 on all resources.

I entered the container `app` and tried the following command but get an error:

```
root@discourse:/var/www/discourse# RAILS_ENV=production bundle exec script/discourse remap '/uploads' '/community/uploads'
bundler: failed to load command: script/discourse (script/discourse)
PG::ConnectionBad: FATAL: Peer authentication failed for user "discourse"

```

Also my server’s nginx conf:

```
 location /community/ {
# rewrite /(.*) /$1 break;
                proxy_pass http://meta.domain.org:25654/;
                proxy_read_timeout 90;
                proxy_redirect http://meta.domain.org:25654/ https://meta.domain.org/;
                proxy_set_header Host $http_host;
                proxy_http_version 1.1;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        }

```

YAML Config:

```
  - exec:
      cd: $home
      cmd:
        - mkdir -p public/community
        - cd public/community && ln -s ../uploads && ln -s ../backups
        - rm public/uploads
        - rm public/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_fastly_client_ip
     global: true

```

---

_[View the full topic](https://meta.discourse.org/t/blank-page-after-installing-discourse-on-subfolder/96112)._
