I´m trying to get a rewriteMap for my dispatcher from a Servlet alocated on my AEm instance. Can I use in AEM cloud dispatcher some scripts like:
#!/bin/bash
# Llama al servlet en AEM y devuelve las reglas en formato key-value para RewriteMap curl -s https://publish-p88805-e1164595.adobeaemcloud.com/bin/servlets/proxy/map.txt
and then use it like:
RewriteMap proxyRules prg:/etc/httpd/conf.d/rewrites/map.sh
Has anyone faced something like that?
thank you all in advance!!
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @Developer_anon ,
If you use AEMaaCS, you can use AEM Pipeline-free redirect that was recently introduced by Adobe. Link: https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/implementing/con...
I would suggest you to store map (proxy rules) on AEM as a simple txt file. You can use https://adobe-consulting-services.github.io/acs-aem-commons/features/redirect-map-manager/index.html. It will allow you to link it for AEM cloud dispatcher.
Best regards,
Kostiantyn Diachenko.
Hi @Developer_anon , Pls try below
RewriteMap testMap txt:https://publish-p88805-e1164595.adobeaemcloud.com/bin/servlets/proxy/map.txt
RewriteRule ^(.*)$ ${testMap:$1} [R=301,L]
Create servlet which should give response as key value in new line
Thanks,
Ramesh
Hi @Uppari_Ramesh,
Thank you for your response, I already tried that but when I try to deploy to AEM cloud instances (like dev) It shows the next error:
Hi @Developer_anon ,
If you use AEMaaCS, you can use AEM Pipeline-free redirect that was recently introduced by Adobe. Link: https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/implementing/con...
I would suggest you to store map (proxy rules) on AEM as a simple txt file. You can use https://adobe-consulting-services.github.io/acs-aem-commons/features/redirect-map-manager/index.html. It will allow you to link it for AEM cloud dispatcher.
Best regards,
Kostiantyn Diachenko.
Thank you for your reply. I will try this option, seems that could work for my case. There is any other documentation about that?
I will try it and let you know if I can make it work for my scenario.
Thnak you!
Views
Likes
Replies