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