Skip to content

Commit

Permalink
Merge pull request #36 from zendtech/bartlomiej
Browse files Browse the repository at this point in the history
ZSTD-4974 Deploying from Studio on ZS+nginx is not successful
  • Loading branch information
bartlomiej-laczkowski committed May 14, 2015
2 parents de08e6f + 4787ba4 commit 5d1341e
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,11 @@ private VhostInfo getVirtualHost(String targetId, String baseUrl)
if (hostsList != null) {
List<VhostInfo> infos = hostsList.getVhosts();
if (infos != null) {
VhostInfo defaultVhost = null;
for (VhostInfo vhostInfo : infos) {
if (vhostInfo.isDefaultVhost()) {
defaultVhost = vhostInfo;
}
String protocol = vhostInfo.isSSL() ? "https" : "http";
String host = vhostInfo.getName();
if ("*".equals(host)) {
Expand Down Expand Up @@ -788,6 +792,8 @@ private VhostInfo getVirtualHost(String targetId, String baseUrl)
}
}
}
// Use default vhost if there is no perfect match
return defaultVhost;
}
}
return null;
Expand Down

0 comments on commit 5d1341e

Please sign in to comment.