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
+20.6k Golang : Check if os.Stdin input data is piped or from terminal
+10.4k Golang : Random Rune generator
+22.9k Golang : Round float to precision example
+7.8k Golang : Set horizontal, vertical scroll bars policies and disable interaction on Qt image
+7.2k Golang : A simple forex opportunities scanner
+16.1k Golang : Get digits from integer before and after given position example
+13.6k Golang : Read from buffered reader until specific number of bytes
+14.6k Golang : Find network of an IP address
+11.5k Golang : Intercept and process UNIX signals example
+6k Golang : List all packages and search for certain package
+8k Golang : Reverse a string with unicode
+24.2k Golang : Use regular expression to validate domain name