# جعل 'www' يعمل مع Discourse

**URL:** <https://meta.discourse.org/t/making-www-work-with-discourse/150785>\
**Category:** Product Support\
**Created:** [8 مايو 2020، 4:23ص UTC](https://meta.discourse.org/t/making-www-work-with-discourse/150785 "2020-05-08T04:23:38Z")\
**Posts on this page:** 1\
**Showing post:** 31

<div class="post-metadata">

**Author:** ![Milo](https://avatars.discourse-cdn.com/v4/letter/m/85e7bf/32.png) [@Milo](https://meta.discourse.org/u/Milo)\
**Post date:** [15 مايو 2020، 6:45م UTC](https://meta.discourse.org/t/making-www-work-with-discourse/150785/31 "2020-05-15T18:45:43Z")

</div>

أعتقد أنني عثرت على المشكلة، كان لدي هذا:

```
after_ssl:
    - replace:
        filename: "/etc/runit/1.d/letsencrypt"
        from: /--keylength/
        to: "-d example.com -d www.example.com --keylength"

```

بينما كان يجب أن يكون لدي:

```
after_ssl:
    - replace:
        filename: "/etc/runit/1.d/letsencrypt"
        from: /--keylength/
        to: "-d example.com --keylength"

```

لاحظ السطر الأخير، كان لدي [example.com](http://example.com) و [www.example.com](http://www.example.com)

كما قمت بتغيير `return 301 https://$host$request_uri;` إلى `return 301 $scheme://$host$request_uri;` وبعد إعادة البناء يبدو أن الأمر يعمل الآن.

الآن أنا قلق فقط بشأن ما ذكره @Stephen حول احتمال حدوث خلل عند تغيير إعدادات letsencrypt..

---

_[View the full topic](https://meta.discourse.org/t/making-www-work-with-discourse/150785)._
