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
+16.4k Golang : Find out mime type from bytes in buffer
+13.9k Golang : Convert spaces to tabs and back to spaces example
+9k Golang : Inject/embed Javascript before sending out to browser example
+42.1k Golang : How do I convert int to uint8?
+9.6k Golang : Convert(cast) string to int64
+5.1k Golang : Display packages names during compilation
+6k AWS S3 : Prevent Hotlinking policy
+9.5k Facebook : Getting the friends list with PHP return JSON format
+18.8k Unmarshal/Load CSV record into struct in Go
+12.4k Golang : Get remaining text such as id or filename after last segment in URL path
+7.1k Golang : Validate credit card example
+7.1k Web : How to see your website from different countries?