Thread Starter
ayron
(@ayron)
Sorry
The correct mybucket and not mydomain.
https://s3.amazonaws.com/mybucket/image-01.png
Does not work. The featured image is not displayed. This is the default url of the plugin.
https://mybucket.s3.amazonaws.com/image-01.png (works). Changes made manually, but I can not edit the url of an image featured
I had the same problem, and I believe the plugin works like this because S3’s SSL certificate can’t handle more than 2 levels of subdomains (So https://mysite.s3.amazonaws.com is okay but https://mysite.com.s3.amazonaws.com isn’t).
It’s slightly “hacky” but I solved it by setting CloudFront Settings > Domain Name to the mysite.s3.amazonaws.com (Where you would of course change mysite to match your bucket).
Thread Starter
ayron
(@ayron)
Hi, LasseKartin. Thank You.
I solved based on the response in henriquemattos in
https://ww.wp.xz.cn/support/topic/bucket-u-are-attempting-to-access-must-be-addressed-using-the-specified-endpoint
File: amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php
line: 336
Commented the original line and replaces the other as below.
elseif ( is_ssl() || $this->get_setting( ‘force-ssl’ ) ) {
/** $domain_bucket = ‘s3.amazonaws.com/’ . $s3object[‘bucket’];*/
$domain_bucket = $s3object[‘bucket’] . ‘.s3.amazonaws.com’;
This has solved the same issue I had.
Thanks guys