A quick post today for those who want to compile NGINX from source on a CentOS server (5.4).
Includes SSL module, as well as GZIP + stub module (assuming you want to have a high performance server - GZIP to compress output, and STUB to enable NGINX to talk to a monitor package like Munin)
yum install pcre
yum install pcre-devel
yum install zlib
yum install zlib-devel
yum install openssl-devel
yum install openssl
wget http://sysoev.ru/nginx/nginx-0.7.65.tar.gz
tar -xvf nginx-0.7.65.tar.gz
./configure --prefix=/usr/share/nginx --sbin-path=/usr/local/sbin --with-http_ssl_module --conf-path=/etc/nginx/nginx.conf --with-http_gzip_static_module --group=nginx --user=nginx --sbin-path=/usr/sbin/nginx --pid-path=/var/run/nginx.pid --with-http_stub_status_module