mirror of
https://github.com/certbot/certbot.git
synced 2026-07-30 18:04:31 +02:00
Bump min nginx version to 0.8.48
We are assuming that if a server_name isn't specified, it matches the empty string. Prior to 0.8.48, it would match the machine's hostname.
This commit is contained in:
@@ -399,10 +399,11 @@ class NginxConfigurator(object):
|
|||||||
|
|
||||||
nginx_version = tuple([int(i) for i in version_matches[0].split(".")])
|
nginx_version = tuple([int(i) for i in version_matches[0].split(".")])
|
||||||
|
|
||||||
# nginx < 0.8.21 doesn't use default_server
|
# nginx < 0.8.48 uses machine hostname as default server_name instead of
|
||||||
if nginx_version < (0, 8, 21):
|
# the empty string
|
||||||
|
if nginx_version < (0, 8, 48):
|
||||||
raise errors.LetsEncryptConfiguratorError(
|
raise errors.LetsEncryptConfiguratorError(
|
||||||
"Nginx version must be 0.8.21+")
|
"Nginx version must be 0.8.48+")
|
||||||
|
|
||||||
return nginx_version
|
return nginx_version
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user