Skip to content

Cockpit behind NGINX reverse proxy closes connection after several seconds #19277

Closed Answered by shindouj
shindouj asked this question in Q&A
Discussion options

You must be logged in to vote

Funny! I checked all the logs with journalctl -f and guess what happened:

Sep 05 23:39:16 hostname monit[1634]: 'nginx' failed protocol test [HTTP] at [127.0.0.1]:81 [TCP/IP] -- HTTP error: Server returned status 403
Sep 05 23:39:16 hostname monit[1634]: 'nginx' trying to restart
Sep 05 23:39:16 hostname monit[1634]: 'nginx' stop: '/bin/systemctl stop nginx'
Sep 05 23:39:16 hostname systemd[1]: Stopping nginx.service - A high performance web server and a reverse proxy server...
Sep 05 23:39:21 hostname nginx[850790]: 2023/09/05 23:39:21 [alert] 850790#850790: *25 open socket #27 left in connection 15
Sep 05 23:39:21 hostname nginx[850790]: 2023/09/05 23:39:21 [alert] 850790#850790: *24 op…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@shindouj
Comment options

Answer selected by shindouj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants