Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

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

Avatar

Level 2

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

 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

View solution in original post

0 Replies

Avatar

Community Advisor

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)

Avatar

Level 2

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 

 

Avatar

Correct answer by
Community Advisor

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