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
+1.4k Golang : PGX CopyFrom to insert rows into Postgres database
+7k Golang : Detect number of active displays and the display's resolution
+4.5k AWS S3 : Prevent Hotlinking policy
+4.2k Unix/Linux : How to open tar.gz file ?
+11.5k Elastic Search : Mapping date format and sort by date
+9.7k CodeIgniter : How to check if a session exist in PHP?
+9.1k Golang : Display a text file line by line with line number example
+12k Golang : Reset buffer example
+13.3k Golang : Generate QR codes for Google Authenticator App and fix "Cannot interpret QR code" error
+10.6k Golang : Get user input until a command or receive a word to stop