# استخدام خادمين ويب: هل هناك حاجة إلى اثنين من مقابس Unix؟

**URL:** <https://meta.discourse.org/t/using-two-web-servers-two-unix-sockets-needed/120956>\
**Category:** Self-hosting\
**Created:** [21 يونيو 2019، 3:17ص UTC](https://meta.discourse.org/t/using-two-web-servers-two-unix-sockets-needed/120956 "2019-06-21T03:17:12Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![csmu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/csmu/32/124581_2.png) [@csmu](https://meta.discourse.org/u/csmu)\
**Post date:** [21 يونيو 2019، 4:24ص UTC](https://meta.discourse.org/t/using-two-web-servers-two-unix-sockets-needed/120956/2 "2019-06-21T04:24:59Z")

</div>

> [@prostasia](#):
>
> Can I use the same container and socket (/var/discourse/shared/standalone/nginx.http.sock) for both

We run nginx in front of discourse.

Setting the upstream to the same server would probably work.

```plaintext
upstream discourse {
    server 127.0.0.1:8080;
		keepalive 32;
}

```

---

_[View the full topic](https://meta.discourse.org/t/using-two-web-servers-two-unix-sockets-needed/120956)._
