Skip to content

Commit 44474e5

Browse files
mjj4791fabaff
authored andcommitted
prevent 502 errors caused by apache port-reuse (home-assistant#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).
1 parent fbbe3e5 commit 44474e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/_docs/ecosystem/apache.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ If you don't want HTTPS, you can change `<VirtualHost *:443>` to `<VirtualHost *
5454

5555

5656
<p class='note'>
57-
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:
57+
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:
5858
</p>
5959
```text
6060
<VirtualHost *:443>

0 commit comments

Comments
 (0)