mirror of
https://github.com/certbot/certbot.git
synced 2026-08-01 02:44:21 +02:00
Merge pull request #5029 from certbot/issue_4792
expand nginx no name error
This commit is contained in:
@@ -236,7 +236,11 @@ class NginxConfigurator(common.Plugin):
|
|||||||
if not vhost:
|
if not vhost:
|
||||||
# No matches. Raise a misconfiguration error.
|
# No matches. Raise a misconfiguration error.
|
||||||
raise errors.MisconfigurationError(
|
raise errors.MisconfigurationError(
|
||||||
"Cannot find a VirtualHost matching domain %s." % (target_name))
|
("Cannot find a VirtualHost matching domain %s. "
|
||||||
|
"In order for Certbot to correctly perform the challenge "
|
||||||
|
"please add a corresponding server_name directive to your "
|
||||||
|
"nginx configuration: "
|
||||||
|
"https://nginx.org/en/docs/http/server_names.html") % (target_name))
|
||||||
else:
|
else:
|
||||||
# Note: if we are enhancing with ocsp, vhost should already be ssl.
|
# Note: if we are enhancing with ocsp, vhost should already be ssl.
|
||||||
if not vhost.ssl:
|
if not vhost.ssl:
|
||||||
|
|||||||
Reference in New Issue
Block a user