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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user