I am trying to install a certificate for my server but running Certbot --Nginx gives me the following error

Error while running nginx -c /etc/nginx/nginx.conf -t. nginx: [emerg] open() "/etc/nginx/mime.types" failed (2: No such file or directory) in /etc/nginx/nginx.conf:94 nginx: configuration file /etc/nginx/nginx.conf test failed

While my Nginx.config file is here:

nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful

I've been looking for a way to change where Centbot is looking for the config file but sadly to no avail.

Thank you for your time.

New contributor
Arendan Markfeld is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

Your Answer

Arendan Markfeld is a new contributor. Be nice, and check out our Code of Conduct.

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.