# 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:** 16

<div class="post-metadata">

**Author:** ![Ivan\_Rapekas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ivan_rapekas/32/248924_2.png) [@Ivan\_Rapekas](https://meta.discourse.org/u/Ivan_Rapekas)\
**Post date:** [June 27, 2019, 9:46pm UTC](https://meta.discourse.org/t/404-errors-assets-on-subfolder-installation/120910/16 "2019-06-27T21:46:48Z")

</div>

Hi @john3, subfolder installation is painful 😀

I compared my config (left) and yours (right), take a look at line 12, probably you forgot to change word `forum`. Next, I have extra block `replace`, lines 22-29:

 ![%D0%B8%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5](https://global.discourse-cdn.com/meta/original/3X/f/a/fa07426dd3b4941a41402cfc52cd98d5402354fc.png)

The end:

 ![%D0%B8%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5](https://global.discourse-cdn.com/meta/original/3X/6/8/68bdbdac49b070ce885fe9c2032cac010651f4f0.png)

External proxy:

```plaintext
location /discuss {

## This is ProxyPassReverse for Nginx
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://192.168.1.2$request_uri;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

```

---

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