Miguel Stevens
Miguel Stevens

Reputation: 9201

Certbot (letsencrypt) Could not open file sites-enabled/default

I'm using an Amazon EC3 with 2 vhosts now, they both have valid certificates.

Now I want to add a third virtual host, I added the nginx config file but when I try to run the following command

it's looking for the "default" nginx config file. but in my case it's named "web"

certbot --nginx -d mysite.be www.mysite.be

Can I add a command so that certbot looks in my web file for the valid config instead of the default one?

Upvotes: 2

Views: 1678

Answers (1)

limit
limit

Reputation: 31

You could make an alias. ln -s /etc/nginx/sites-available/your_file_name /etc/nginx/sites-enabled

Upvotes: 3

Related Questions