nginx Reverse Proxy

Redirect Request from port 80 to 8080 on specified or local host

EPEL is needed on C5

rpm -Uvh$(uname -m)/epel-release-5-3.noarch.rpm

To install nginx

yum install nginx

Now edit the nginx config file

vi /etc/nginx/nginx.conf

An example config will be:

location / { proxy_pass http://localhost:8080; proxy_set_header X-Real-IP $remote_addr; }

To get effect run

service nginx restart