# שגיאה בהתחברות ל-Redis ב-localhost:6379 (Errno::EADDRNOTAVAIL)

**URL:** <https://meta.discourse.org/t/error-connecting-to-redis-on-localhost-6379-errno-eaddrnotavail/183647>\
**Category:** Self-hosting\
**Created:** [18 במרץ,‏ 2021,‏ 11:46am UTC](https://meta.discourse.org/t/error-connecting-to-redis-on-localhost-6379-errno-eaddrnotavail/183647 "2021-03-18T11:46:48Z")\
**Posts on this page:** 1\
**Showing post:** 27

<div class="post-metadata">

**Author:** ![Andrea\_Giovacchini](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andrea_giovacchini/32/213224_2.png) [@Andrea\_Giovacchini](https://meta.discourse.org/u/Andrea_Giovacchini)\
**Post date:** [24 במרץ,‏ 2021,‏ 8:41am UTC](https://meta.discourse.org/t/error-connecting-to-redis-on-localhost-6379-errno-eaddrnotavail/183647/27 "2021-03-24T08:41:13Z")

</div>

@Falco I’ve finally found my solution! Tryed reverse proxying in HTTP with HAPROXY, NGINX, APACHE and everytime site was working but delete problem was there waiting for me.

Last night I gave a last try because I’d really like Discourse, so I told myself: go on, try with HTTPS, it will make no difference but why don’t give it a try before giving up?

Well, with HTTPS all works perfectly. For me it’s perfect this way, I’ll throw HTTP in the garbage bin 😂

This are the relevant parts of Apache config:

> ```
> <VirtualHost *:443>
> ServerName discourse.apicolturaitalianafb.it 
> SSLEngine on
> SSLCertificateFile "/usr/local/ssl/crt/certificate.crt"
> SSLCertificateKeyFile "/usr/local/ssl/crt/private.key"
> SSLCertificateChainFile "/usr/local/ssl/crt/ca_bundle.crt"
> <Location />
> ProxyPreserveHost On
> RequestHeader set Host "discourse.apicolturaitalianafb.it:8443"
> ProxyPass http://discourse.apicolturaitalianafb.it:8880/
> </Location>
> </VirtualHost> 
> 
> ```

and Discourse’s app.yml:

> ```
> templates:
> - "templates/postgres.template.yml"
> - "templates/redis.template.yml"
> - "templates/web.template.yml"
> - "templates/web.ratelimited.template.yml"
> # - "templates/web.socketed.template.yml"
> ## Uncomment these two lines if you wish to add Lets Encrypt (https)
> #- "templates/web.ssl.template.yml"
> #- "templates/web.letsencrypt.ssl.template.yml"
> 
> ## which TCP/IP ports should this container expose?
> ## If you want Discourse to share a port with another webserver like Apache or nginx,
> ## see https://meta.discourse.org/t/17247 for details
> expose:
> - "8880:80" # http
> # - "8443:443" # https
> 
> ```

---

_[View the full topic](https://meta.discourse.org/t/error-connecting-to-redis-on-localhost-6379-errno-eaddrnotavail/183647)._
