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
+6k Web : How to see your website from different countries?
+6.8k Golang : Configure Apache and NGINX to access your Go service example
+12.1k Facebook PHP getUser() returns 0
+16k Golang : Iterate linked list example
+6.6k Golang : Test if an input is an Armstrong number example
+11.3k Swift : Convert (cast) Int or int32 value to CGFloat
+4.1k Unix/Linux : secure copying between servers with SCP command examples
+4.1k Python : Create Whois client or function example
+4.4k Javascript : How to loop over and parse JSON data?
+21.3k Golang : Test file read write permission example
+14.5k Golang : Update database with GORM example
+3.9k Golang : Print instead of building pyramids