Nginx installer & long domain names

My domain is:
test.drblumenfeld-cme-injectiontechniques.net

I ran this command:
sudo /opt/certbot/certbot-auto --nginx --debug --non-interactive --email {CERT_EMAIL} --agree-tos --domains {CERT_DOMAIN} --keep-until-expiring

It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator nginx, Installer nginx
Cert not yet due for renewal
Keeping the existing certificate
Deploying Certificate to VirtualHost /etc/nginx/nginx.conf
nginx: [emerg] could not build server_names_hash, you should increase server_names_hash_bucket_size: 64
Rolling back to previous server configuration…

My web server is (include version):
AWS (Elastic Bean Stalk)

The operating system my web server runs on is (include version):
Amazon Linux

My hosting provider, if applicable, is:
AWS

I can login to a root shell on my machine (yes or no, or I don’t know): no

I’m using a control panel to manage my site (no, or provide the name and version of the control panel): more or less

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot): latest

Any ideas for this guys ? Can I tell the NGINX plugin to create a shorter server_name, or to have him change the defective nginx config ?

Hi @cklopfert

please check

http://nginx.org/en/docs/http/server_names.html

In this case, the directive value should be increased to the next power of two:

    http {
        server_names_hash_bucket_size  64;
        ...

and change your config.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.