Linux Nginx as Reverse Proxy KodeKloud



At first login to backup server

Then install httpd annd nginx by running following commands

yum install httpd
yum install epel-release
yum install nginx
Now ,edit the apache config file and Change port and ServerName according to question
Type vi  /etc/httpd/conf/httpd.conf

Listen 6000

Go to ServerName and uncomment by removing # and write


Now save the config and restart httpd

Go to nginx config by typing

vi /etc/nginx/nginx.conf
Edit the config as follows. For reverse proxy add the proxy_pass in location tab like this config image.
 Save it and restart nginx

Now, Go to jump host and copy index.html file 

Now switch to backup server and copy it to httpd document root

Finally move to jump_host and check

Share on Google Plus

About Ashadullah Shawon

I am Ashadullah Shawon. I am a Software Engineer. I studied Computer Science and Engineering (CSE) at RUET. I Like To Share Knowledge. Learn More: Click Here
    Blogger Comment
    Facebook Comment


Post a Comment