Setup VirtualHost on Nginx

vim /etc/nginx/conf.d/virutal.conf
server {
 listen 80;
  server_name my-helper.com;
  rewrite ^/(.*) http://www.my-helper.com/$1 permanent;
}

server {
  listen 80;
  server_name www.my-helper.com;
  access_log /var/www/vhosts/my-helper.com/logs/access.log;
   error_log /var/www/vhosts/my-helper.com/logs/error.log;
 location / {
        root    /var/www/vhosts/my-helper.com/htdocs/;
      index   index.php;
  }
}

Reference:
http://articles.slicehost.com/2009/2/25/centos-nginx-virtual-hosts

Install Nginx

1. Enable EPEL repo (ref: http://www.cyberciti.biz/faq/rhel-fedora-centos-linux-enable-epel-repo/)

rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-6.noarch.rpm

2. Install nginx

yum install nginx

3. Start nginx

/etc/init.d/nginx

Reference:
http://www.ibualoy.net/blog/itech/linux/167-how-to-configure-nginx-and-apache-on-debian
http://articles.slicehost.com/2008/12/17/centos-installing-nginx-via-yum
http://www.cyberciti.biz/faq/rhel-fedora-install-configure-nginx-php5/