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
+14.5k Golang : Convert(cast) int to float example
+22.3k Golang : Read directory content with filepath.Walk()
+10.8k Golang : How to transmit update file to client by HTTP request example
+11.6k Golang : Calculations using complex numbers example
+25.3k Golang : Generate MD5 checksum of a file
+14.5k Golang : GUI with Qt and OpenCV to capture image from camera
+20.1k Golang : How to get struct tag and use field name to retrieve data?
+29.2k Golang : Save map/struct to JSON or XML file
+7.6k Golang : get the current working directory of a running program
+18.2k Golang : Get path name to current directory or folder
+46k Golang : Read tab delimited file with encoding/csv package