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
+13.5k Golang : How to get year, month and day?
+22.3k Golang : Convert seconds to minutes and remainder seconds
+25.9k Golang : How to read integer value from standard input ?
+41.4k Golang : Convert string to array/slice
+5.1k Golang : Check if a word is countable or not
+11.7k Golang : Convert(cast) float to int
+48.2k Golang : How to convert JSON string to map and slice
+20.7k Golang : Read directory content with os.Open
+22.8k Golang : Round float to precision example
+14.5k Golang : Find network of an IP address
+16.4k Golang : Send email and SMTP configuration example
+7.8k Golang : Regular Expression find string example