nginx: [warn] duplicate value when editing file in nginx/sites-available

I’ve just migrated my Wordpress / Woocommerce site to a new Ubuntu 20.04 droplet. (

I’m trying to edit my nginx/sites-available config file to strengthen my SSL following this tutorial.

However im getting the following error when trying to add anything to my config file in sites-available.

nginx: [warn] duplicate value “TLSv1.2” in /etc/nginx/sites-enabled/

Any ideas what might be causing the issue?


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there @jak3tayl0r,

What I could suggest here is using the grep command to look for any other references of TLSv1.2 in your Nginx directory.

To do that, you can run the following command:

  1. sudo grep -ri 'TLSv1.2' /etc/nginx/

Also if you wish you could share the contents of your /etc/nginx/sites-enabled/ file so that I could try to advise you further.

Regards, Bobby