Skip to content

Commit

Permalink
ZSTD-4974 Deploying from Studio on ZS+nginx is not successful
Browse files Browse the repository at this point in the history
  • Loading branch information
Bartlomiej Laczkowski committed May 14, 2015
1 parent a007283 commit 4787ba4
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 4787ba4

Please sign in to comment.