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
+12.1k Swift : Convert (cast) Int to String ?
+6.3k Golang : How to handle file size larger than available memory panic issue
+19.2k Golang : Saving private and public key to files
+17.7k Golang : Read input from console line
+16.7k Golang : Get command line arguments
+5.1k PHP : How to check if an array is empty ?
+23.4k Golang : Change file read or write permission example
+6.6k Golang : Shuffle strings array
+36k Golang : Read a text file and replace certain words
+7k Golang : Randomize letters from a string example
+11.4k Golang : "https://" not allowed in import path
+19.4k Golang : Convert PNG transparent background image to JPG or JPEG image