mirror of
https://github.com/certbot/certbot.git
synced 2026-06-03 13:59:02 -04: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:
parent
a0b410f460
commit
23d27f4659
1 changed files with 4 additions and 3 deletions
|
|
@ -399,10 +399,11 @@ class NginxConfigurator(object):
|
|||
|
||||
nginx_version = tuple([int(i) for i in version_matches[0].split(".")])
|
||||
|
||||
# nginx < 0.8.21 doesn't use default_server
|
||||
if nginx_version < (0, 8, 21):
|
||||
# nginx < 0.8.48 uses machine hostname as default server_name instead of
|
||||
# the empty string
|
||||
if nginx_version < (0, 8, 48):
|
||||
raise errors.LetsEncryptConfiguratorError(
|
||||
"Nginx version must be 0.8.21+")
|
||||
"Nginx version must be 0.8.48+")
|
||||
|
||||
return nginx_version
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue