Adding another site to my trellis managed host

Hey folks –

I am trying to add in a satis instance on my QA box and I added a virtual host for it … i.e.’s VH:

 server {
  listen   80;

  root /srv/www/satis/public/web/;
  index index.html index.htm;


  location / {
   default_type "text/html";
   try_files $uri.html $uri $uri/ /index.html;


I want to add lets encrypt to that individual domain, so I install letsencrypt and run
sudo certbot --nginx -d

and it returns:

root@staging2018:/etc/nginx/sites-available# sudo certbot --nginx -d
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator nginx, Installer nginx
Starting new HTTPS connection (1):
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for
nginx: [emerg] duplicate listen options for [::]:80 in /etc/nginx/sites-enabled/no-default.conf:20
Cleaning up challenges
nginx restart failed:

odd thing is /etc/nginx/sites-enabled/no-default.conf:20 is only 14 lines line, i.e.

# Ansible managed

# Drop requests for unknown hosts
# If no default server is defined, nginx will use the first found server.
# To prevent host header attacks, or other potential problems when an unknown
# servername is used in a request, it's recommended to drop the request
# returning 444 "no response".

server {
  listen [::]:80 default_server deferred;
  listen 80 default_server deferred;
  return 444;

any idea what’s going on here?

certbot can’t be used with Trellis’ letsencrypt role on the same server.

If you have a solution, please help me out on as well.

1 Like

Any way that I can add an arbitrary letsencrypt cert without certbot?