As the biggest rival to Apache in the web server market, it’s good to know how to build and use Nginx.
1. Install (or confirm installed):
openssl-devel
pcre-devel
gcc
zlib-devel
2. Download nginx source from http://nginx.org/en/download.html
3. Untar the source tarball
4. Run
./configure --prefix=/usr/local/nginx \
--with-http_ssl_module \
--without-mail_pop3_module \
--without-mail_imap_module \
--without-mail_smtp_module \
--with-http_stub_status_module
5. As root run:
make && make install
6. Start web server using init script to confirm function, review logs for issues
You can find an init script for nginx here: https://github.com/breauxaj/nginx.git