Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/14.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 为什么我的S3主机名/路径总是加倍?甚至可以尝试路径风格:真的_Amazon Web Services_Amazon S3_Carrierwave - Fatal编程技术网

Amazon web services 为什么我的S3主机名/路径总是加倍?甚至可以尝试路径风格:真的

Amazon web services 为什么我的S3主机名/路径总是加倍?甚至可以尝试路径风格:真的,amazon-web-services,amazon-s3,carrierwave,Amazon Web Services,Amazon S3,Carrierwave,我使用fog aws(1.2.0)和rails 5.1.1以及carrierwave 0.9.0。 这是我的问题 Excon::Error::Socket (hostname "assets-xxxx-staging-xxxx-co.assets-lighthouse-staging-xxxx-co.s3-ap-northeast-1.amazonaws.com" does not match the server certificate (OpenSSL::SSL::SSLError)):

我使用fog aws(1.2.0)和rails 5.1.1以及carrierwave 0.9.0。 这是我的问题

Excon::Error::Socket (hostname "assets-xxxx-staging-xxxx-co.assets-lighthouse-staging-xxxx-co.s3-ap-northeast-1.amazonaws.com" does not match the server certificate (OpenSSL::SSL::SSLError)):
我尝试了
path\u style
:true 错误是signaturedesnotmatch,然后我发现路径也错了

:host          => "assets-xxxx-staging-xxxx-co.s3-ap-northeast-1.amazonaws.com"
  :local_address => "172.104.102.98"
  :local_port    => 42496
  :path          => "/assets-xxxx-staging-xxxx-co/assets-xxxx-staging-xxxx-co/uploads/image/file/677/14138703_1238894682828634_8829163820773300140_o.jpg"
  :port          => 443
  :reason_phrase => "Forbidden"
为什么总是双路径。。。 发生了什么事?我对此一无所知。。。。? 请找个人帮忙。

我自己修好了

第一步,我把桶从东京移到新加坡

最后一步,我将bucket name改为shorter(不要使用句号)

只是工作

虽然我不知道是哪一步让它起作用,但我相信第一步有更大的机会

AWS在不同宗教之间有缺陷

如果你也用雾。它确实有可能主机名与url前缀重复,而此问题链接可能会有所帮助