有个问题.有的图片存在本地服务器,有的存在第三方服务器.
而且图片名称都类似~不好区分~
因此我想配个代理.如果在本地服务器找不到,就代理到第三方服务器.
请问这个nginx 如何配置?
最终解决方法:
location /{
        root  xxxxx;
        index index.html;
        if (!-e $request_filename) {
            proxy_pass yyyyyy;
        }
    }
                            
                                    Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
错误重定向
location /{
}
location @test{
}
最终这么解决的~