开发者

Perlbal Reproxy with Remote Host

开发者 https://www.devze.com 2022-12-13 09:55 出处:网络
why would perlbal\'s reproxying give me a 503 for any remote url? X-REPROXY-URL: /path/to/a/local/file.jpg = working

why would perlbal's reproxying give me a 503 for any remote url?

X-REPROXY-URL: /path/to/a/local/file.jpg = working
X-REPROXy-URL: http://a-public-file-in-an-s3-bucket.jpg = HTTP 503

my perlbal c开发者_运维百科onf looks like:

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

and i know im setting the header properly, because, as i said, it works for local files and urls.


looks like perlbal doesn't deal well with urls like "bucket-name.s3.amazonaws.com". changing the url to "s3.amazonaws.com/bucket-name/" works.

0

精彩评论

暂无评论...
验证码 换一张
取 消