Supporting Dev and Staging origins
Hi,
I am looking at Fastly and trying to figure out how I could use Fastly to support my Prod, Staging and Dev environments.
All my users for Staging and Dev use a VPN/Proxy (so I can lock down who has access). So for Staging and Dev I they have specific set of IP addresses they come from and I have some control over the headers. So I can identify these users by their client IP address or any headers I have my proxy server inject.
If my website is www.example.com, I want to be able to route certain traffic back to my staging origin server and certain traffic back to my Dev origin server.
Is there any way to support this setup with Fastly?
thank you
-
Hi Chad,
Thanks for using our community forums. What you are wanting or needing to achieve should be easy enough to do. You could set your different backends based on client.ip/fastly-client-ip or different headers as needed using request conditions. Here's a guide that goes over this:https://docs.fastly.com/en/guides/routing-assets-to-different-origins
Please sign in to leave a comment.
Comments
1 comment