diff options
author | Noah Swartz <swartzcr@gmail.com> | 2017-08-29 00:04:56 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-29 00:04:56 +0300 |
commit | 8d362d4469bbc9f265a382c0a0a4f258efe5284f (patch) | |
tree | 990e25db97c827c7d8539cf23c2aeeab4dab6de4 | |
parent | 133f6368178631daf06eb70e35d4254f10716fa4 (diff) | |
parent | df71ec33b33c68461a992ac4dee9812c5748cd42 (diff) |
Merge pull request #5029 from certbot/issue_4792
expand nginx no name error
-rw-r--r-- | certbot-nginx/certbot_nginx/configurator.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/certbot-nginx/certbot_nginx/configurator.py b/certbot-nginx/certbot_nginx/configurator.py index fbe881bb0..0579c8d52 100644 --- a/certbot-nginx/certbot_nginx/configurator.py +++ b/certbot-nginx/certbot_nginx/configurator.py @@ -236,7 +236,11 @@ class NginxConfigurator(common.Plugin): if not vhost: # No matches. Raise a misconfiguration error. 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: # Note: if we are enhancing with ocsp, vhost should already be ssl. if not vhost.ssl: |