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
+9.8k Golang : Generate random elements without repetition or duplicate
+20.8k Fix "Failed to start php5-fpm.service: Unit php5-fpm.service is masked."
+11.4k Elastic Search : Return all records (higher than default 10)
+12.8k Android Studio : Use image as AlertDialog title with custom layout example
+18.9k Golang : Count number of digits from given integer value
+8.8k PHP : Get coordinates latitude/longitude from string
+25.9k PHP : Count number of JSON items/objects
+14k Golang : rune literal not terminated error
+12.1k Golang : Generate Code128 barcode
+4.9k CodeIgniter/PHP : Remove empty lines above RSS or ATOM xml tag
+6.6k Golang : Generate human readable password
+32.6k Golang : Proper way to set function argument default value