Kill lui lei Dog---linux no:39 reverse proxy for Linux under Nginx

Source: Internet
Author: User

The reverse proxy diagram looks like this:

From the visible, our server is actually divided into two, a dedicated to the source of PHP and other programs, and another is dedicated to store the image of the server, because the picture in server A does not exist, so it may lead to the following display:

Not see this is quite normal, because server A does not have this picture, the picture under Server B:

So we're going to change the configuration file for Server A:

Then we start adding a reverse proxy code to the server:

        Location ~ \. (jpg|jpeg|png| gif) $ {            Proxy_pass http://192.168.8.166:80;        }

Then save the exit, and then go to the Sbin directory with the following instructions to update the following configuration:

./nginx-s Reload

Then visit the following:

Yes problem solved ...

Kill lui lei Dog---linux no:39 reverse proxy for Linux under Nginx

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.