Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amazon web services Nginx config用作AWS S3的反向代理_Amazon Web Services_Nginx_Amazon S3_Reverse Proxy - Fatal编程技术网

Amazon web services Nginx config用作AWS S3的反向代理

Amazon web services Nginx config用作AWS S3的反向代理,amazon-web-services,nginx,amazon-s3,reverse-proxy,Amazon Web Services,Nginx,Amazon S3,Reverse Proxy,我正在尝试创建一个Nginx反向代理服务器来连接到awss3。 背后的想法是,所有对AWS S3的请求都应该通过Nginx进行。这是一些尝试过的配置。使用这些配置,无法访问其显示站点 server { listen 9091; location / { proxy_set_header Host 'my-bucket.s3.ap-south-1.amazonaws.com'; proxy_hide_header x-amz-id-2; pr

我正在尝试创建一个Nginx反向代理服务器来连接到awss3。 背后的想法是,所有对AWS S3的请求都应该通过Nginx进行。这是一些尝试过的配置。使用这些配置,无法访问其显示站点

server {
    listen 9091;

    location / {

      proxy_set_header Host 'my-bucket.s3.ap-south-1.amazonaws.com';
      proxy_hide_header x-amz-id-2;
      proxy_hide_header x-amz-request-id;
      proxy_hide_header Set-Cookie;
      proxy_ignore_headers "Set-Cookie";
      proxy_intercept_errors on;
      proxy_pass http://my-bucket.s3.ap-south-1.amazonaws.com/;

      set $aws_access_key access-key;
      set $aws_secret_key secret-key;

      proxy_cache_valid  200 302  24h;
    }
}

你在S3上更新了CORS吗?是的,我在S3上更新了我的CORS。还是一样。nginx解析域名正确吗?e、 g您是否有定义为
解析器8.8.8.8
的解析器?我还没有解析器。解析器做什么?你们在S3上更新了CORS吗?是的,我在S3上更新了我的CORS。还是一样。nginx解析域名正确吗?e、 g您是否有定义为
解析器8.8.8.8
的解析器?我还没有解析器。解析器做什么?