Skip to content

Commit 2e7cfe3

Browse files
committed
Fixes #6858 missing / when subroot is appended to nginx document root
1 parent f2bbced commit 2e7cfe3

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)