Fix nginx config to make non vhost configs default_server

Nginx does not match on the ip as a vhost. This no basically replaces
the commented out section in the nginx.conf
This commit is contained in:
Johannes Zellner
2017-01-06 21:59:46 +01:00
parent a3dc641be1
commit fd479d04a0
3 changed files with 6 additions and 2 deletions

View File

@@ -5,8 +5,12 @@ map $http_upgrade $connection_upgrade {
}
server {
<% if (vhost) { %>
listen 443;
server_name <%= vhost %>;
<% } else { %>
listen 443 default_server;
<% } %>
ssl on;
# paths are relative to prefix and not to this file