cevincheung

如何完美反代 amazon s3?

  •  
  •   cevincheung ·
    cevin · Jul 13, 2015 · 3709 views
    This topic created in 4152 days ago, the information mentioned may be changed or developed.

    s3国内被屏蔽的太厉害了,想自己做个反代玩。设置好nginx规则后,访问测试发现直接跳转到了s3的介绍页面……301跳转

    server {
        listen 80;
        server_name aws.domain.com;
        location / {
            proxy_pass http://xxxxx.xxx.amazonaws.com;
            proxy_set_header Host xxxxx.xxx.amazonaws.com;
        }
    }
    
    4 replies  •  2015-07-24 18:01:08 +08:00
    cevincheung
    cevincheung
    OP
    Jul 13, 2015
    1
    - -#难道就没人用过?
    aivier
    aivier
    Jul 13, 2015
    2
    可能要发送User-Agnt?
    cevincheung
    cevincheung
    OP
    Jul 13, 2015
    3
    @aivier user-agent就是当前访客的useragent,这个是没问题的
    akira
    akira
    Jul 24, 2015
    4
    肯定是哪里配错了,例如域名没配对。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4527 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 03:43 · PVG 11:43 · LAX 19:43 · JFK 22:43
    ♥ Do have faith in what you're doing.