Apache as Reverse-Proxy for Netbox Docker, problems with HTTP 408 Errors after idle time #575
Replies: 3 comments 1 reply
-
Is there a solution to this problem? I have same problem. |
Beta Was this translation helpful? Give feedback.
-
I am using a similar approach, and I have experienced the same issue as well. |
Beta Was this translation helpful? Give feedback.
-
While not a solution, I have identified a workaround. The 408 errors seem to be related to some interaction between the Python app and the Apache proxy connections. Apache typically reuses these connections for efficiency's sake, but something about that reuse is causing the error. At least in our environment, disabling reuse of proxy connections has caused the issue to go away:
|
Beta Was this translation helpful? Give feedback.
-
I'm trying to use Apache as a TLS reverse-proxy in front of netbox-docker but having problems with HTTP 408 Errors and intermittent errors concerning static assets which are not found anymore.
The whole proxy setup is working fine if you are surfing the netbox application but when being idle for about 2-4 minutes, the next request is answered mostly with a HTTP 408 Error (Request Timeout) from Server "Unit/1.22.0" (seen in Response Headers). After doing a clear CTRL-Refresh, everything works fine again until being idle for some minutes.
There are no problems when accessing netbox via its original docker exposed port on the host itself.
I think somehow the connections between Apache and the netbox nginx are getting out of sync. I tried to tinker around with some timeout settings in the Apache ProxyPass Directive, but without success so far.
This is the config for the Apache vhost concerning netbox (there are other working vhosts for other tools working fine).
I'm using Apache as reverse proxy for the non-docker installation method with no issues. Just the netbox-docker installation is driving me nuts.
Does anybody have some hints what could be the reason for this behaviour?
Environment:
Server: CentOS 7
Apache: 2.4.6
netbox-docker: 2.11.9
Regards
Michael
Beta Was this translation helpful? Give feedback.
All reactions