Skip to content

Commit 9537d7b

Browse files
author
Till Brehm
committed
Merge branch '6858-incorrect-root-directive-after-snippet-application-in-ispconfig-3-3-beta-1' into 'develop'
Resolve "Incorrect root directive after snippet application in ISPConfig 3.3 Beta 1" Closes #6858 See merge request ispconfig/ispconfig3!2010
2 parents f2bbced + 2e7cfe3 commit 9537d7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/plugins-available/nginx_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3170,7 +3170,7 @@ private function nginx_merge_locations($vhost_conf) {
31703170
$app->log('Token ##subroot is unsecure (server ID: '.$conf['server_id'].').', LOGLEVEL_WARN);
31713171
} else {
31723172
$insert_pos = strpos($vhost_conf, ';', strpos($vhost_conf, 'root '));
3173-
$vhost_conf = substr_replace($vhost_conf, ltrim($subroot[1], '/'), $insert_pos, 0);
3173+
$vhost_conf = substr_replace($vhost_conf, '/'.ltrim($subroot[1], '/'), $insert_pos, 0);
31743174
}
31753175
}
31763176

0 commit comments

Comments
 (0)