Hello,
I have CheckMK Raw v2.4 running on an Ubuntu 24 server.
I have an Apache2 web server set up on a separate server.
I would like to utilize the SSL set up and domain of that separate server to also host CheckMK.
I have created a new virtual host and set up reverse proxy from Apache web server to CheckMK server.
That is all working as expected.
My problem is that, when I enter my virtual host URL which connects to CheckMK, CheckMK then redirects to its login page. The URL of that redirect matches what is configured in the site’s APACHE_TCP_ADDR parameter. So, for example, if I enter https://myhost.mysite.com which connects as reverse proxy to the CheckMK server, CheckMK then redirects to http://192.168.1.17/mysite/check_mk/login.py?_origtarget=index.py
Am I missing something in my configuration which would allow CheckMK to recognize the proxied domain name and use that?
Is there a way to have the CheckMK site redirect to a relative path for the login (eg. /mysite/check_mk/login.py)?
If not, can someone point me to the block of code which initiates that redirect so I can edit it manually? I am unable to find a index.py anywhere on the server.
Thank you.