Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

234
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda