Hello, I am running Edx instance on Azure VM. I have attached the DNS to my edx instance. I want to get ssl certificate. So I was trying to get this.
- First I added fully qualified Domain name in LMS configuration file. as www.mydomain.com
- Then I ran First 5 commands properly then,
- Then I run cmd: sudo certbot --authenticator standalone --installer nginx --pre-hook “service nginx stop” --post-hook “service nginx start”
But I got error as
Error while running nginx -c /etc/nginx/nginx.conf -t.
nginx: [emerg] unknown directive “www.mydomain.com” in /etc/nginx/sites-enabled/lms:12
nginx: configuration file /etc/nginx/nginx.conf test failed
It also shows : The nginx plugin is not working; there may be problems with your existing configuration.
The error was: MisconfigurationError(‘Error while running nginx -c /etc/nginx/nginx.conf -t.\n\nnginx: [emerg] unknown directive “www.millionlightsdev.com” in /etc/nginx/sites-enabled/lms:12\nnginx: configuration file /etc/nginx/nginx.conf test failed\n’,)
There seems to be problem with nginx server. Please guide me to install my ssl certification