cevincheung

如何完美反代 amazon s3?

  •  
  •   cevincheung ·
    cevin · Jul 13, 2015 · 3532 views
    This topic created in 4033 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
        1
    cevincheung  
    OP
       Jul 13, 2015
    - -#难道就没人用过?
    aivier
        2
    aivier  
       Jul 13, 2015
    可能要发送User-Agnt?
    cevincheung
        3
    cevincheung  
    OP
       Jul 13, 2015
    @aivier user-agent就是当前访客的useragent,这个是没问题的
    akira
        4
    akira  
       Jul 24, 2015
    肯定是哪里配错了,例如域名没配对。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   954 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 21:37 · PVG 05:37 · LAX 14:37 · JFK 17:37
    ♥ Do have faith in what you're doing.