# Unix:/var/discourse/shared/standalone/nginx.http.sock (2: No such file or directory) \[SOLVED\]

**URL:** <https://meta.discourse.org/t/unix-var-discourse-shared-standalone-nginx-http-sock-2-no-such-file-or-directory-solved/142342>\
**Category:** Self-hosting\
**Created:** [22 februari 2020 om 12:40 UTC](https://meta.discourse.org/t/unix-var-discourse-shared-standalone-nginx-http-sock-2-no-such-file-or-directory-solved/142342 "2020-02-22T12:40:30Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![pr0cesor](https://avatars.discourse-cdn.com/v4/letter/p/977dab/32.png) [@pr0cesor](https://meta.discourse.org/u/pr0cesor)\
**Post date:** [22 februari 2020 om 15:38 UTC](https://meta.discourse.org/t/unix-var-discourse-shared-standalone-nginx-http-sock-2-no-such-file-or-directory-solved/142342/5 "2020-02-22T15:38:28Z")

</div>

> Make sure
> 
> - SSL/Let’s Encrypt templates are commented because it’s already cared by your external Nginx config.
> - Rebuild the app so the `nginx.http.sock` file will appear in `/var/discourse/shared/standalone/

Okay, but what will happen about this line then? The 502 gateway error is gonne and the website is up, however I see the same nginx error because of this line.

> ```
> location / {
> proxy_pass http://unix:/var/discourse/shared/standalone/nginx.http.sock;
> 
> ```

SSL seems not to be working and the images are not displayed. I uploaded a logo when setting up the forum

 ![sssl](https://global.discourse-cdn.com/meta/original/3X/d/e/de6107d894ac2d0ae02c7ac1014ee8f929083012.jpeg)

 ![sssl_notsecure](https://global.discourse-cdn.com/meta/original/3X/a/8/a8db95ede5f4a9067e7b9e9189344ab706183d05.jpeg)

 ![sssl_notsecure2](https://global.discourse-cdn.com/meta/original/3X/1/6/16689b759f978e8c65f441668c62a4b5f8d8c774.jpeg)

---

_[View the full topic](https://meta.discourse.org/t/unix-var-discourse-shared-standalone-nginx-http-sock-2-no-such-file-or-directory-solved/142342)._
