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
+15.8k Golang : How to check if input from os.Args is integer?
+16.5k Golang : read gzipped http response
+13.9k Golang : Check if a file exist or not
+32k Golang : Copy directory - including sub-directories and files
+5.5k Golang : Error handling methods
+3.5k Java : Random alphabets, alpha-numeric or numbers only string generator
+13.5k Golang : How to determine if a year is leap year?
+5.1k Golang : Pad file extension automagically
+13.1k Golang : Read from buffered reader until specific number of bytes
+24.7k Golang : Create PDF file from HTML file
+28.1k Golang : Change a file last modified date and time
+6k Javascript : Generate random key with specific length