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
+3.7k Linux/MacOSX : How to symlink a file?
+10.9k Golang : Add ASCII art to command line application launching process
+9.2k Golang : Meaning of omitempty in struct's field tag
+16.8k Golang : Get download file size
+4.9k Golang : Compound interest over time example
+13.5k Golang : Missing Bazaar command
+7.2k Golang : How to check variable or object type during runtime?
+21.3k Golang : Test file read write permission example
+3.4k Javascript : How to show different content with noscript?
+12.6k Golang : convert rune to unicode hexadecimal value and back to rune character
+9.4k Golang : Roll the dice example