We have a requirement to host some static HTML pages directly on Apache web server under the same domain which delivers content from AEM.
ex - www.mysite.com/home.html, www.mysite.com/images/abc.gif are maintained and delivered by AEM.
www.mysite.com/docs/1.html, www.mysite.com/docs/2.html , www.mysite.com/docs/1/1_1.html - these files are maintained outside AEM and not uploaded as an asset in AEM. How Do I deliver these files using the same web server?
Any help or suggestion is appreciated.
Thanks
Ani
Solved! Go to Solution.
Views
Replies
Total Likes
One possible option is to enable a reverse proxy on Apache to serve the external URL through the same domain the AEM website hosted - Reverse Proxy Guide - Apache HTTP Server Version 2.4
(Refer to Apache Reverse Proxy: Content From Different Websites | by Albin Issac | The Startup | Medium for more details)
If you are concerned about enabling the reverse proxy through the Apache server, enable CDN behavior to pass the specific requests to the external server.
Regards
AI
Hi,
You can upload the html's to dam folder and have dispatcher changes to redirect the docs/ to /content/dam/{yourproject}/docs/ and render the html.
If you are using Akamai or similar architecture then you can redirect to apache or cdn based on the url path (containing docs/ then redirect to apache where the html's are located)
Hi Ravi,
We want to avoid using AEM for these files/pages. These files are built and generated using a external CMS and managed by a different team who simply want to use the same web server as the primary site.
Thanks
Ani
One possible option is to enable a reverse proxy on Apache to serve the external URL through the same domain the AEM website hosted - Reverse Proxy Guide - Apache HTTP Server Version 2.4
(Refer to Apache Reverse Proxy: Content From Different Websites | by Albin Issac | The Startup | Medium for more details)
If you are concerned about enabling the reverse proxy through the Apache server, enable CDN behavior to pass the specific requests to the external server.
Regards
AI
Views
Likes
Replies