Hi! From time to time (around once a month) the panel starts returning 502. bt 1 solves the issue
I want to create monitoring for it by checking some endpoint (healtcheck if it exists)
Since I don't know healtcheck endpoint I used curl for panel login page, i.e.
https://my.domain.com:7800/aapanel
I can open it via browser with 200 response but when I use curl
curl -k -o /dev/null -w "%{http_code}" https://my.domain.com:7800/aapanel
it rerurns 404
when I run
curl -k -I https://my.domain.com:7800/aapanel
HTTP/1.1 500 INTERNAL SERVER ERROR
Server: nginx
Date: Tue, 12 May 2026 15:52:54 GMT
Content-Type: text/plain; charset=utf-8
Content-Length: 0
Connection: keep-alive
X-Frame-Options: SAMEORIGIN
I get 500 response.
Why and how to curl it correctly?