# 404 errors (assets) on Subfolder installation

**URL:** <https://meta.discourse.org/t/404-errors-assets-on-subfolder-installation/120910>\
**Category:** Support\
**Created:** [June 20, 2019, 1:50pm UTC](https://meta.discourse.org/t/404-errors-assets-on-subfolder-installation/120910 "2019-06-20T13:50:14Z")\
**Posts on this page:** 1\
**Showing post:** 18

<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:** [June 28, 2019, 7:49pm UTC](https://meta.discourse.org/t/404-errors-assets-on-subfolder-installation/120910/18 "2019-06-28T19:49:20Z")

</div>

I have made the changes and it’s still the same. My configs are given below. I am using Centos 7 with overlay2 as device storage driver.

Nginx reverse proxy:

```
location /community {
                pagespeed off;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $remote_addr;

proxy_set_header X-Forwarded-Proto $scheme;

proxy_read_timeout 3600;
proxy_connect_timeout 240;
proxy_set_header Host $host;
proxy_set_header X-RealIP $remote_addr; #Important line for our logging objective

## End This is ProxyPassReverse for Nginx

proxy_pass http://127.0.0.1:25654$request_uri;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

```

app.yml

```
run:
    - 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: 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

    - exec: echo "End of custom commands"

```

Could you please send me the last part of your YML config i.e. -exec…

---

_[View the full topic](https://meta.discourse.org/t/404-errors-assets-on-subfolder-installation/120910)._
