nginx 如何根据代理服务器的响应做不同的操作?
巴扎黑
巴扎黑 2016-11-07 15:06:35
0
3
1187

有个问题.有的图片存在本地服务器,有的存在第三方服务器.
而且图片名称都类似~不好区分~
因此我想配个代理.如果在本地服务器找不到,就代理到第三方服务器.
请问这个nginx 如何配置?

巴扎黑
巴扎黑

reply all(3)
cloudmam

Configuring the server environment has always been a headache for webmasters. Even experienced website builders cannot guarantee that they can manually configure the server environment successfully in one go; because there are too many steps to manually configure the server environment, something may go wrong. All previous efforts may be wasted, seriously affecting the efficiency of website building. How to better solve this problem? I recommend Cloud Helper here. The operation is simple and easy to use, and novices can configure it successfully in one go. Comes with its own environment kit, foolproof installation and deployment. For some friends who are not familiar with Linux systems, manually configuring the apach mysql php website development environment will encounter various configuration problems, and they are not easy to solve. Then, it is very necessary to use a one-click environment package. Cloud Helper provides a variety of mainstream environment packages under Windows and Linux systems to help quickly create and configure websites. It is currently free to use. You can directly download and register on the official website (Cloud Helper https://www.cloudx.cn/?utm_source=wup) to use it. It is still recommended

哪儿

Recommend an artifact that should be able to help you. Cloud Helper is a powerful and comprehensive centralized management cloud host software. Not only is it compatible with Linux systems, Windows can also be used. In fact, the use of functions is quite good, because the functions are comprehensive and the installation is simple. Basically, it can be done with one click by a fool. If you add a cloud host in the middle, you need to add a probe for the first time, and then you can basically operate it on the panel. This is quite convenient. I have tried basically all the mainstream clouds and there are no problems, and there are no problems with the system. This is quite worry-free. I won’t say that there are any cloud providers or systems that cannot be used, and I have to find another software. The general functions are as follows: 1. Batch management of multiple cloud hosts; 2. Strong compatibility, compatible with basically all cloud business cloud hosts on the market, and compatible with operating systems; 3. Simple operation, visual interface preview resources, one-click repair, one-click deployment ; 4. You can remotely log in to the FTP desktop of the cloud host and process files on the cloud host; 5. Monitoring and resources also have an alarm function, which is very good, and you don’t have to stare at it; 6. System repair function, this is very practical It is also quite necessary; 7. Free to use. Generally speaking, the functions are quite complete, and there is no need to find another software. A cloud helper software basically meets all needs.

phpcn_u29

错误重定向

location /{

error_page 404 @test;

}

location @test{

proxy_pass http://upstreamName;


Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template