From 44474e53424f730a735d86e1ba8578f011b149a3 Mon Sep 17 00:00:00 2001
From: mjj4791
Date: Mon, 28 Aug 2017 11:17:24 +0200
Subject: [PATCH] prevent 502 errors caused by apache port-reuse (#3267)
Without the 'disableeuse=On' configured, Apache will try to reuse tcp ports even when these ports were closed by home assistant (tcp FIN was sent). When Apache tries to use such a port, no answer will come from home assistant, causing Apache to respond with a HTTP 502 error.
With this option turned on, the situation will not occur (since ports will not be reused).
---
source/_docs/ecosystem/apache.markdown | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/source/_docs/ecosystem/apache.markdown b/source/_docs/ecosystem/apache.markdown
index 9e5806fe59d..44b90ebe413 100644
--- a/source/_docs/ecosystem/apache.markdown
+++ b/source/_docs/ecosystem/apache.markdown
@@ -54,7 +54,7 @@ If you don't want HTTPS, you can change `` to `
-In case you are getting occasional HTTP 504 error messages ("Gateway Timeout") when accessing the Web UI through your proxy, try adding disablereuse=on to both ProxyPass directives:
+In case you are getting occasional HTTP 504 error messages ("Gateway Timeout") or HTTP 502 messages ("Bad Gateway") when accessing the Web UI through your proxy, try adding disablereuse=on to both ProxyPass directives:
```text