CDN proxy redirect using selectOrigin not working
Hi,
I want to redirect my domain traffic to appbuilder project. I copy pasted the exact adobe example for origin selectors.
kind: "CDN"
version: "1"
metadata:
envTypes: ["dev"]
data:
originSelectors:
rules:
- name: content-hub-portal
when:
allOf:
- reqProperty: domain
equals: "aem-dev-contenthub.example.com"
action:
type: selectOrigin
originName: portal-live
origins:
- name: portal-live
domain: 712524-contenthubportal-stage.adobeio-static.net
I expect upon hitting https://aem-dev-contenthub.example.com/ it would proxy redirect to app builder. But it is always hitting AEM dispatcher.
Any hint how to troubleshoot cdn pipelines? How to debug why this redirect is not working as expected?
Can you please share a working cdn.yaml config file where you implemented selectOrigin and it worked?
Edit:
I referred to this post and changed the config like this, still same result, traffic always hitting publisher and not redirecting to appbuilder. I can confirm appbuilder works from browser. just cdn.yaml is not redirecting traffic.
kind: "CDN"
version: "1"
metadata:
envTypes: ["dev"]
data:
originSelectors:
rules:
- name: staging
when: { reqProperty: domain, like: aem-dev-contenthub.example.com }
action:
type: selectOrigin
originName: mysite-staging-url
origins:
- name: mysite-staging-url
domain: 712524-contenthubportal-stage.adobeio-static.net
forwardHost: false
If anyone got your selectOrigin working successfully? can you please share the config yaml?
