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

@@ -206,7 +206,7 @@ function configureAdmin(callback) {
}
// always create a configuration for the ip
nginx.configureAdmin(certFilePath, keyFilePath, IP_BASED_SETUP_NAME + '.conf', ip, function (error) {
nginx.configureAdmin(certFilePath, keyFilePath, IP_BASED_SETUP_NAME + '.conf', '', function (error) {
if (error) return callback(error);
// skip my.domain.com setup if we don't have a domain