Trellis: duplicate listen options for [::]:443 in /etc/nginx/sites- enabled/ssl.no-default.conf:11

After pulling in Simplify Nginx no-default sites for HTTPS by swalkinshaw · Pull Request #1414 · roots/trellis · GitHub and re-provisioning local, my team and I ran into this error:

nginx: [emerg] duplicate listen options for [::]:443 in /etc/nginx/sites-
enabled/ssl.no-default.conf:11
nginx: configuration file /etc/nginx/nginx.conf test failed

To fix, we removed the following files and re-provision:

  • /etc/nginx/sites-available/ssl.no-default.conf
  • /etc/nginx/sites-enabled/ssl.no-default.conf

Hope that helps someone else get back up and running :pray:

5 Likes

You’re a live saver. Thank you!

1 Like

I’ll probably make a more backwards update to this before the next release since more people will run into it.

1 Like

Here’s the proposed improvement: Fix backwards compat for ssl.no-default conf by swalkinshaw · Pull Request #1415 · roots/trellis · GitHub

2 Likes