Skip to content

Commit

Permalink
Merge pull request #419 from AGPDev/master
Browse files Browse the repository at this point in the history
Visual improvment in vhosts list
  • Loading branch information
cytopia authored Nov 8, 2018
2 parents a49633f + d3b15cd commit ce3d965
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .devilbox/www/htdocs/vhosts.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<th>DocumentRoot</th>
<th>Valid</th>
<th>URL</th>
</th>
</tr>
</thead>
<tbody>
<?php
Expand Down
5 changes: 4 additions & 1 deletion .devilbox/www/include/lib/container/Httpd.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,17 @@ public function getVirtualHosts()
while (false !== ($directory = readdir($handle))) {
if ($this->_is_valid_dir($docRoot . DIRECTORY_SEPARATOR . $directory) && $directory != '.' && $directory != '..') {

$vhosts[] = array(
$vhosts[$directory] = array(
'name' => $directory,
'domain' => $directory .'.' . $this->getTldSuffix(),
'href' => 'http://' . $directory . '.' . $this->getTldSuffix()
);
}
}
}

ksort($vhosts);

return $vhosts;
}

Expand Down

0 comments on commit ce3d965

Please sign in to comment.