为什么perlbal的reproxying会给我503
任何远程网址?
X-REPROXY-URL: /path/to/a/local/file.jpg = working
X-REPROXy-URL: http://a-public-file-in-an-s3-bucket.jpg = HTTP 503
我的perlbal conf看起来像:
CREATE POOL test_pool
POOL test_pool ADD 127.0.0.1:8888
POOL test_pool ADD 127.0.0.1:8889
CREATE SERVICE balancer
SET listen = 0.0.0.0:80
SET role = reverse_proxy
SET pool = test_pool
SET persist_client = on
SET persist_backend = on
SET verify_backend = on
SET enable_reproxy = true
ENABLE balancer
我知道我正确设置了标题,因为正如我所说,它适用于本地文件和网址。
答案 0 :(得分:1)
看起来perlbal与“bucket-name.s3.amazonaws.com”这样的网址不太匹配。将网址更改为“s3.amazonaws.com/bucket-name/”有效。