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
+22.3k Mac/Linux and Golang : Fix bind: address already in use error
+5.6k Golang : Not able to grep log.Println() output
+38.6k Golang : Convert string to array/slice
+5.2k Golang : Use modern ciphers only in secure connection
+10.9k Golang : http.Get example
+14k Golang : Find file size(disk usage) with filepath.Walk
+14.3k Golang : Gzip file example
+5.8k Golang : Shuffle strings array
+16.2k Golang : Check if os.Stdin input data is piped or from terminal
+12.6k Golang : How to reverse elements order in map ?
+6.1k Golang : Handle Palindrome string with case sensitivity and unicode