Delivering an static HTML pages maintained outside AEM but using the same hostname configured with AEM | Community
Skip to main content
Level 2
Jul 22, 2022 4:13 PM UTC
Solved

Delivering an static HTML pages maintained outside AEM but using the same hostname configured with AEM

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

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
AlbinIs1Accepted solution
Level 2
Jul 25, 2022 4:20 PM UTC

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

www.albinsblog.com

3 replies

AlbinIs1Accepted solution
Level 2
Jul 25, 2022 4:20 PM UTC

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

www.albinsblog.com

Translate
Ravi_Pampana
New Participant
Jul 22, 2022 4:23 PM UTC

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)

Translate
ajoshi84Author
Level 2
Jul 22, 2022 4:36 PM UTC

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 

 

Translate