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






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

6 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. I like viewing web sites which comprehend the price of delivering the excellent useful resource free of charge. I truly adored reading your posting. Thank you! 翻墙

    ReplyDelete
  4. 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
  5. 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
  6. That appears to be excellent however i am still not too sure that I like it. At any rate will look far more into it and decide personally! source

    ReplyDelete