** This article has been updated new article **
Why nginx?
Using a Raspberry Pi as webserver is a no brainer. On that list of no brainers
is using the lighter-weight webserver nginx solution. The
binaries circulating through apt-get though are often out of date. So we will
compile our own from source.
Download the PCRE library
One of the requirements for nginx needed for http_rewrites
is the PCRE library. So we will need that dependency installed first:
sudo apt-get update;
sudo apt-get install libpcre3 libpcre3-dev;
Download the SSL library
The other requirement will be OpenSSL. In the future I plan on configuring
my Raspberry Pi nginx server to use HTTPS:
sudo apt-get update;
sudo apt-get install libssl-dev;