Browse Source

Update WebServer.php

walkor 7 years ago
parent
commit
1efb0356d9
1 changed files with 3 additions and 0 deletions
  1. 3 0
      WebServer.php

+ 3 - 0
WebServer.php

@@ -52,6 +52,9 @@ class WebServer extends Worker
      */
     public function addRoot($domain, $config)
     {
+	if (is_string($config)) {
+            $config = array('root' => $config);
+	}
         $this->serverRoot[$domain] = $config;
     }