Comments (6)
@philipithomas perhaps what you are seeing is a configuration problem with CloudFront, as described here: http://stackoverflow.com/questions/15309113/amazon-cloudfront-doesnt-respect-my-s3-website-buckets-index-html-rules
In your CloudFront distribution settings, Is your Origin Domain Name set to the "normal" domain name of the bucket, or the "external website" domain name of the bucket? If it is the "normal" domain name, then you aren't activating S3's "index.html" support. That is only available through the "external website" domain name. (See the Stack Overflow article for more information).
If that is the case, then I agree the example domain name in README.md could be improved.
from s3_website.
I fixed the configuration on my cloudfront distribution to the endpoint (external) instead of the bucket (internal), but running s3_website cfg apply ended up changing the configuration to the internal bucket. Thus, the gem's configuration does not support the directory indices (and running it again breaks the configuration). This requires a further fix than the just the readme. I can update the Cloudfront configuration api call tomorrow and put it in a pull request. It should be fairly straightforward; I just haven't looked into the test coverage to see how many things such a change would break.
http://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteEndpoints.html
from s3_website.
This issue is related to #30 (I just re-opened the issue).
from s3_website.
Yes, the configure-s3-website, which is responsible for creating the S3 bucket and the Cloudfront distribution, does not currently support other than S3 as an origin. That's why s3_website cfg apply
overwrites your setting.
I've created a new issue on the configure-s3-website about this problem.
from s3_website.
Let's continue solving this problem in #30.
from s3_website.
This problem should be fixed in the release 1.6.1.
Please give the s3_website cfg create
and s3_website cfg apply
commands a try. I have them working as expected, but I'd like to hear your experience as well.
Edit: more info here: #30 (comment).
from s3_website.
Related Issues (20)
- Private S3 bucket
- Configure custom response codes
- Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty HOT 4
- Compatibility with CloudFront "Origin Access Identity" usage?
- sun.security.validator.ValidatorException: PKIX path building failed HOT 1
- Support behind proxy HOT 1
- issues with deployment to us-east-2 region
- HTTP to HTTPS Redirection HOT 4
- cfg apply results in Aws::CloudFront::Errors::MalformedInput
- S3 listObjects is iterating through whole bucket
- Is it possible to redirect with query string
- Errors parsing ERB on s3_website push HOT 11
- Upload fail with accent characters HOT 1
- Exception in thread "main" java.lang.ExceptionInInitializerError HOT 6
- No redirects to configure for `bucket-name` bucket HOT 1
- Cant download
- Hugo Deploy: Migrating from S3 Website HOT 1
- Looking for new maintainers HOT 7
- Who's still using s3_website HOT 9
- unsupported Java version: 17 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from s3_website.