GithubHelp home page GithubHelp logo

Comments (6)

spudbean avatar spudbean commented on June 15, 2024

@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.

philipithomas avatar philipithomas commented on June 15, 2024

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.

laurilehmijoki avatar laurilehmijoki commented on June 15, 2024

This issue is related to #30 (I just re-opened the issue).

from s3_website.

laurilehmijoki avatar laurilehmijoki commented on June 15, 2024

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.

laurilehmijoki avatar laurilehmijoki commented on June 15, 2024

Let's continue solving this problem in #30.

from s3_website.

laurilehmijoki avatar laurilehmijoki commented on June 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.