While we've covered Apache's HTTPD server so far in this chapter, there are other options available for use on Linux platforms as well. One popular offering is nginx (pronounced engine-x), which works well as a lightweight, fast, multithreaded offering.
We're going to look at how to set it up as a TLS webserver.
Installing on Ubuntu 14.04:
Install the software:
sudo apt-get install nginx
Configure the server for TLS by uncommenting the HTTPS server section of
/etc/nginx/sites-available/default
while populating thessl_certificate
,ssl_certificate_key
andssl_ciphers
variables.Restart the daemon:
sudo service nginx restart
On CentOS 7, nginx is not included in the default repos, but is available in the Extra Packages for Enterprise Linux (EPEL) repository.
Install the EPEL repo:
sudo yum install epel-release
Install the
nginx
package:yum install nginx
Configure the server for TLS by adding an https server section to
/etc/nginx/nginx...