nginx: [emerg] unknown directive "ssl"
Purchased SSL certs and wanted to install SSL for nginx/CentOS Droplets today but encountered this error message instead :
nginx: [emerg] unknown directive "ssl"
Apparently, the nginx version that I used has no SSL module. To fix the error, recompile Nginx with the --with-http_ssl_module
option.
The option will only worked if OpenSSL is installed.
See also : Nginx + FastCGI + Go Setup.
By Adam Ng
IF you gain some knowledge or the information here solved your programming problem. Please consider donating to the less fortunate or some charities that you like. Apart from donation, planting trees, volunteering or reducing your carbon footprint will be great too.
Advertisement
Tutorials
+9.2k Golang : Temperatures conversion example
+9.9k CodeIgniter : Load different view for mobile devices
+5.9k Golang : Experimenting with the Rejang script
+8.8k Golang : GMail API create and send draft with simple upload attachment example
+30.2k Golang : How to redirect to new page with net/http?
+8.9k Golang : Handle sub domain with Gin
+21k Golang : Convert(cast) string to rune and back to string example
+30.4k Golang : Remove characters from string example
+7.1k Golang : How to fix html/template : "somefile" is undefined error?
+4.9k Golang : micron to centimeter example
+9.5k Golang : Validate IPv6 example
+30.9k Golang : Calculate percentage change of two values