CheckMK on a multiple hosts

Good morning everyone. I am a CheckMK RAW edition user that I installed on a virtual machine that acts as my webserver.

If I try to open the URL in the SERVERIP/sitename format from the browser, the software loads correctly. However, if I try to enable the apache virtual host sitename.domain.com the software does not load.

How should I write the conf file dedicated to the virtual host?

Thanks to everyone

Its enough to have a cname record in DNS which points to the real server and then do a rewrite in apache to the site.

regards

Michael

Hi Mike,

thanks for the response. I have tried your solution but apache redirect me to https://site.domain.com.

<VirtualHost *:80>
        ServerAdmin mymail@domain.com
        ServerName site.domain.com
        ServerAlias www.site.domain.com
        DocumentRoot /opt/omd/sites/site/
       
        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

Where is my error?

Remove everything you did and follow:

You dont need a virt host.

BR

MF

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.