Reputation: 307
I'm planning to create a live interactive classroom application. It will contain two parts. One will be the live teaching tool which will require good server specifications and the other will just be a static website with some recorded video lectures.
I want to host the static website on a shared hosting server and the live teaching tool on a cloud like aws or digital ocean. The point of concern here is that I want to keep my service virtually integrated and therefore would like to host the entire website on the same domain name.
I don't feel like it is possible on the very first thought, but is there any way to make it work? Does hosting cloud service on a subdomain help me achieve my goal?
The reason I'm stressing on hosting on shared hosting platform is because I have already purchased a decent shared hosting service and would like to use it somehow.
Upvotes: 0
Views: 168
Reputation: 1927
This is possible through a CDN where you can add multiple origin /source and choose to route the traffic based on request parameters, e.g. if request path starts with /static the request will be served through to static website. Everything else will be served through dynamic backend.
AWS has cloudfront whereas GCP has cloud CDN. Either of them can handle your requirements without a problem.
Here's how you do this in AWS CloudFront:
You first create a distribution in CDN
You point your domain to distribution (through CNAME or ALIAS record)
Add default origin to go to your dynamic site
Specify path for /static origin.
It sounds like you are trying to create a video content site on a budget (inferring this from shared hosting), if so, take a look at this video which seems to show some tips and tricks on how to achieve this using GCP:
https://www.youtube.com/watch?v=N2OG1w6bGFo&feature=youtu.be&t=1865
Upvotes: 1