Linux Nginx as Reverse Proxy KodeKloud


 
 Question
 
 


Solution

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 172.16.238.16:6000

ServerName 172.16.238.16:6000

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


Download Coding Interview Book and Get More Tutorials for Coding and Interview Solution: Click Here

Download System Design Interview Book and Get More Tutorials and Interview Solution: Click Here

Do you need more Guidance or Help? Then Book 1:1 Quick Call with Me: Click Here

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

5 comments:

  1. I adore your websites way of raising the awareness on your readers. vpn free

    ReplyDelete
  2. We are really grateful for your blog post. You will find a lot of approaches after visiting your post. I was exactly searching for. Thanks for such post and please keep it up. Great work. pandavpn

    ReplyDelete
  3. Really appreciate this wonderful post that you have provided for us.Great site and a great topic as well i really get amazed to read this. Its really good. vpn 推荐

    ReplyDelete
  4. The answer to both of these questions is usually as follows: the 中国VPN is making money by collecting and selling user data to third parties. One recent news story highlighted how free VPN apps are being used to deliver financial malware.

    ReplyDelete
  5. Other than that many organizations like to browse over private proxy just because of the fact that they want their browsing to be secure! active

    ReplyDelete