How to configure Myrtille Web Console with the HC10 control panel?

How to configure Myrtille Web Console with the HC10 control panel?

Solution: Myrtille provides web access to virtual machines. MSI installer can be downloaded from this URL: https://github.com/cedrozor/myrtille/releases


After installation, Myrtille's default page would be like below.

In the HC10 control panel, only the Global admin will use to access this default page of Myrtille, so its access needs to be blocked for other users. The below steps are required to perform this task.

Step 1: Redirect the Default page to the custom page:

Install the “Url Rewriting” module for IIS through this URL (https://www.iis.net/downloads/microsoft/url-rewrite) and then update the web.config which is located at the installation path of the application C:\Program Files (x86)\Myrtille\Web.config. It is simply a rewriting rule which states that whenever someone tries to access the “default.aspx” page, it should be redirected to https://localhost:8797/vm/rdpdefault. You can change the base address (e.g. localhost:8797) in the URL to the actual control panel address. Or even just change the entire URL to your own custom page (static HTML) as shown below:

<system.webServer>
         
         <rewrite>
             <rules>
                 <rule name="RequestBlockingRule1" stopProcessing="true">
                     <match url=".*" />
                     <conditions>
                         <add input="{QUERY_STRING}" pattern="__EVENTTARGET=" negate="true" />
                         <add input="{URL}" pattern="/Default.aspx" />
                     </conditions>
                     <action type="Redirect" url=
"https://localhost:8797/Vm/RdpDefault" appendQueryString="false" redirectType="Found" />
                 </rule>
             </rules>
         </rewrite>
 </system.webServer>


Step 2:  Redirect the Login page URL to the custom page URL

Whenever a VM is disconnected or a logout action is performed from Myrtille, the user is redirected to the same default page as mentioned above in step 1. If the admin wants to show a different page for disconnected VMs then he needs to change the value of the key “LoginUrl” in the web.config file. Either, you can set the below-mentioned URL OR use a custom page URL instead of the default page.


Configuration of Myrtille in HC10 Control Panel


When Myrtille is installed, it creates a virtual directory in IIS under the default website which runs on default port 8008 (which can be changed during installation) and a windows service. The Myrtille website virtual directory needs to be accessible via the internet. So, it should be configured to be browsed under some live domain or subdomain like “console.domain.com” etc.


  • Now navigate to this path in the HC10 control panel: Configurations> Virt. Module Conf. > Web Console Settings and select Myrtille from the drop-down menu for RD provider.

As described earlier about the Myrtille website and its windows service, both URLs (service URL and website URL) need to be mentioned on the configuration page of Myrtille in the HC10 control panel and then save the configurations. 


Once configured successfully the Web Console of the VMs can be accessed as shown below:




For any further queries, please contact support@hostingcontroller.com