Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Bug 515970 - self-hosting is broken in orion.eclipse.org
  • Loading branch information
squarti committed Apr 28, 2017
1 parent cbf8c63 commit 43b4d0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/orionode/lib/sites.js
Expand Up @@ -73,7 +73,8 @@ function virtualHost(vhost, req, res, next) {
if (options.configParams["orion.single.user"]) {
path = mPath.join(options.workspaceDir, mapping.Target, relative);
} else {
path = mPath.join(options.workspaceDir, username.substring(0, 2), username, "OrionContent", mapping.Target, relative);
var file = fileUtil.getFile(req, mapping.Target);
path = mPath.join(file.path, relative);
}
if (fs.existsSync(path) && fs.lstatSync(path).isFile()) {
res.sendFile(path);
Expand Down

0 comments on commit 43b4d0d

Please sign in to comment.