Fixing it on the right place, d00p was correct, i apologize -.-

This commit is contained in:
Florian Aders (EleRas)
2010-05-19 12:29:32 +00:00
parent 5a0973dfa3
commit f6f7b2e4be
3 changed files with 3 additions and 5 deletions

View File

@@ -177,7 +177,7 @@ class apache
/**
* add 'real'-vhost content here, like doc-root :)
*/
$mypath = makeCorrectDir(dirname(dirname(dirname(__FILE__))));
$mypath = makeCorrectDir(dirname(dirname(dirname(dirname(__FILE__)))));
$this->virtualhosts_data[$vhosts_filename].= 'DocumentRoot "'.$mypath.'"'."\n";
if($row_ipsandports['vhostcontainer_servername_statement'] == '1')

View File

@@ -107,7 +107,7 @@ class lighttpd
$this->lighttpd_data[$vhost_filename].= '# Froxlor default vhost' . "\n";
$this->lighttpd_data[$vhost_filename].= '$HTTP["host"] =~ "^(?:www\.|)' . $myhost . '$" {' . "\n";
$mypath = makeCorrectDir(dirname(dirname(dirname(__FILE__))));
$mypath = makeCorrectDir(dirname(dirname(dirname(dirname(__FILE__)))));
$this->lighttpd_data[$vhost_filename].= ' server.document-root = "'.$mypath.'"'."\n";
/**