Can I Install Nginx on MAC OS ?
Yes, you can. Especially on Mac OS X 10.7.1 Lion.
Xcode is needed.
Xcode provides everything developers need to create great applications for Mac, iPhone, and iPad. XCode 4 has been streamlined to help you write better apps. It has unified user interface design, coding, testing, and debugging all within a single window.
Visit Mac App Store find and install the XCode.
Then copy and paste these code in terminal window
#!/bin/bash
## DOWNLOADS
sudo curl -OL h ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.13.tar.gz > /usr/local/src/pcre-8.13.tar.gz
sudo curl -OL h http://nginx.org/download/nginx-1.1.4.tar.gz > /usr/local/src/nginx-1.1.4.tar.gz## Install PCRE
sudo mkdir -p /usr/local/src
cd /usr/local/src
tar xvzf pcre-8.13.tar.gz
cd pcre-8.13
./configure –prefix=/usr/local
make
sudo make install
cd ..## Ready install NGINX on Mac OS Lion
tar xvzf nginx-1.1.4.tar.gz
cd nginx-1.1.4
./configure –prefix=/usr/local –with-http_ssl_module
make
sudo make install## Start Nginx
sudo /usr/local/sbin/nginx
Now you have nginx in Your Mac OS Lion.

