diff --git a/src/QUI/Cron/CronService.php b/src/QUI/Cron/CronService.php
index 12a198f8e34b0cb7b320c3593c35d3044413c817..1d3c0ae39fb7fe9764d2f192dba8e6d7a44ab84a 100644
--- a/src/QUI/Cron/CronService.php
+++ b/src/QUI/Cron/CronService.php
@@ -26,13 +26,14 @@ class CronService
 
         // VHost Domain
         $vhost        = QUI::getProjectManager()->getStandard()->getVHost(true, true);
-        $this->domain = $vhost;
 
         // Check if https should be used.
         if (substr($vhost, 0, 8) == 'https://') {
             $this->https = true;
         }
 
+        $this->domain = str_replace("https://", "", $vhost);
+
         // Read the domain from the config file if no vhost could be detected.
         if (empty($vhost)) {
             // Parse Domain and protocol