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
+4.7k Fix Google Analytics Redundant Hostnames problem
+11.5k Golang : Display a text file line by line with line number example
+10.8k Golang : Sieve of Eratosthenes algorithm
+8.6k Golang : Set or add headers for many or different handlers
+10.9k Golang : How to transmit update file to client by HTTP request example
+13.5k Golang : Get user input until a command or receive a word to stop
+21.8k Golang : Use TLS version 1.2 and enforce server security configuration over client
+6.5k Unix/Linux : How to get own IP address ?
+6.4k Grep : How to grep for strings inside binary data
+8.1k Golang : Routes multiplexer routing example with regular expression control
+9.4k Golang : Accessing content anonymously with Tor
+29.9k Golang : Get time.Duration in year, month, week or day