Hi All,
Have created a new AEM dev instance, the end point is set properly but when clicking on any link on the home page it is hitting the publisher server instead of endpoint domain.
Tried few configurations in the dispatcher file when we remove the Rewrite rule which truncated the content path it is hitting the correct domain but throwing 404 error.
Can some one suggest the solution to resolve the issue?
Thanks in advance!
Regards,
Prasannajali.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
@SaiM , can you share example of link on homepage that hits publisher? This is more than publisher / dispatcher issue. Todo with CDN. Your CDN is redirecting all traffic to dispatcher.
is this AEMasCS? CloudService supports configuring pipelines to control CDN traffic.
So, under /apps/project/config/dev/ create a cdn.yaml. Configure the CDN traffic rules as per your requirements.
If you can share failing url, can further assist.
Views
Replies
Total Likes
Thanks for the response @sarav_prakash, the redirect is happening to the correct server after removing the below rewrite rule "RewriteRule ^/content/${PROJECT_FOLDER}/us/en/(.*)$ $1 [R=301,L]". What might be the root cause and how this issue is related to publisher as the publisher is created in the backend when an environment is created?
Regards,
Sai M.
Views
Replies
Total Likes
Got it. its obvious, your author is NOT fronted with Dispatcher. But publisher, by default is fronted with dispatcher. Traffic has to pass dispatcher to reach publisher, and in your case, traffic got snapped at dispatcher itself before hitting publisher.
Now dont remove this rule as it might be intentional to route non-aem traffic. Instead whitelist (PT) rule to specific path that you need. So only your path will hit publisher and remaining paths are deflected as previous.
Another advice is to leverage CDN traffic config pipeline as shared above. Order of traffic flow is
`Browser --> CDN --> Dispatcher --> Publisher <-- Author`
Snapping traffic at much higher layer makes the website faster.
Views
Replies
Total Likes
Views
Like
Replies
Views
Likes
Replies
Views
Likes
Replies