Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

233
Visualizações
How to host multiple static sites on s3 through CloudFront?

I have multiple static sites, each bundled with one index.html file, and each one lives in its own s3 bucket, so my list of buckets would look something like:

site-version-1
    page-1.js
    page-2.js
    index.html
site-version-2
    page-1.js
    page-2.js
    index.html

Where site-version-1 and site-version-2 are both origins of my CloudFront distribution. I would like to be able to visit http://cloudfront-url/site-version-1/page-1 and http://cloudfront-url-site-version-2/page-1 and have those pages be correlated with their appropriate bundles, but I'm a bit stuck as to how I would correlate the name of the bucket with a page under the distribution, if that's directly possible at all.

I've also tried having everything in the same bucket, but in different folders--so that bucket looked like:

bucket
    site-version-1
        page-1.js
        page-2.js
        index.html
    site-version-2
        page-1.js
        page-2.js
        index.html

In this case, when I visit the CloudFront url followed by the name of the folder, it wouldn't know which page I was trying to view.

about 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda