Welcome to Headwind MDM Q&A, where you can ask questions and receive answers from other members of the community.

Please do not post bug reports, missing feature requests, or demo inquiries. If you have such an inquiry, submit a contact form.

0 votes
Is there a way to host multiple domains on one MDM server?

For Example :

- https://vpn-connect[.]my-mdm[.]com

- https://standard-connect[.]my-mdm[.]com
by (290 points)

1 Answer

0 votes

Headwind MDM has never been tested with multiple domains.

To use it with multiple domains, you need to set up a HTTPS certificate for each domain. 

Update the file /var/lib/tomcat9/conf/server.xml:

Find the record

    <Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol"

               maxThreads="150" SSLEnabled="true">

        <SSLHostConfig hostName="my-mdm.com">

                <Certificate certificateKeystoreFile="/var/lib/tomcat8/ssl/my-mdm.com.jks" type="RSA" certificateKeystorePassword="..." />

        </SSLHostConfig>

    </Connector>

and update it in the following way:

    <Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol"

               maxThreads="150" SSLEnabled="true" defaultSSLHostConfigName="standard-connect.my-mdm.com" keystoreFile="/var/lib/tomcat8/ssl/standard-connect.my-mdm.com.jks" keystorePass="...">

        <SSLHostConfig hostName="standard-connect.my-mdm.com">

                <Certificate certificateKeystoreFile="/var/lib/tomcat8/ssl/standard-connect.my-mdm.com.jks" type="RSA" certificateKeystorePassword="..." />

        </SSLHostConfig>

<SSLHostConfig hostName="vpn.my-mdm.com">

                <Certificate certificateKeystoreFile="/var/lib/tomcat8/ssl/vpn.my-mdm.com.jks" type="RSA" certificateKeystorePassword="..." />

        </SSLHostConfig>

    </Connector>

Note the multiple domain records, and the defaultSSLHostConfigName attribute.

Restart Tomcat to apply settings. If everything is fine, you must see the log message that server is started on port 8443.

Also, there is a problem that Headwind MDM has a single base URL (base.url setting in the XML configuration). To override this, you may need to change the URL of each APK file manually.

by (34.1k points)
...