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
+5.8k Golang : Extract XML attribute data with attr field tag example
+9.2k Golang : Validate IPv6 example
+7.4k Setting $GOPATH environment variable for Unix/Linux and Windows
+17k Golang : Linked list example
+15.8k Golang : convert string or integer to big.Int type
+18.8k Golang : Get RGBA values of each image pixel
+22.6k Golang : Randomly pick an item from a slice/array example
+18.6k Golang : Calculate entire request body length during run time
+4.4k Linux/MacOSX : How to symlink a file?
+16.3k Golang : read gzipped http response
+8.4k Golang : Random integer with rand.Seed() within a given range
+5.4k Linux : Disable and enable IPv4 forwarding