Skip to content
This repository was archived by the owner on May 19, 2021. It is now read-only.
This repository was archived by the owner on May 19, 2021. It is now read-only.

API Gateway and HTML Web pages #28

@genifycom

Description

@genifycom

I have watched the Invent and other API gateway videos, read tons of stuff and I am still confused.

Imagine I have two EC2 websites. Each one serves up both webpages and API resources.

Can I use API Gateway to proxy both webpages and resources? i.e. one serves up HTML and the other JSON.

Right now if I create API Gateway resources for /site1 and /site2 and add a resource under each for HTTP Proxy to their respected locations and under the ANY method test something like /site1/index.html the webpage HTML is returned but all of the page content like scripts, css, js etc is not found.

I thought that API gateway was the answer to serverless proxying so have I got it completely wrong?

Thanks,
Dave

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions