2009-12-09 92 views
0

爲什麼perlbal的reproxying會給我一個503的任何遠程URL?Perlbal Reproxy與遠程主機

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 

,我知道IM正確設置標題,因爲,正如我所說的,它適用於本地文件和URL。

回答

1

看起來像perlbal不適合像「bucket-name.s3.amazonaws.com」這樣的網址。將網址更改爲「s3.amazonaws.com/bucket-name/」作品。