AEM Cloud have reverse proxy serlvet? | Community
Skip to main content
Level 8
April 17, 2023
Solved

AEM Cloud have reverse proxy serlvet?

  • April 17, 2023
  • 1 reply
  • 1098 views

There are various implementations of a reverse proxy http servlet, such as j2ep and https://www.eclipse.org/jetty/javadoc/jetty-9/org/eclipse/jetty/proxy/ProxyServlet.html

 

Is there an AEM/slingservlet solution around?

 

The requirement is for the client front end to call the AEM web server instead of an external 3rd party server, and AEM make the call to the 3rd party server.  We dont want to use dispatcher as we want to be able to use servlet filters to modify the request and responses.

 

While we could write our own, its more complicated than one might think, e.g. handling redirects and masking connection specific headers.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by AlbinIs1

I dont think there is any default servlet in AEM to meet this requirement; in my perspective, either one of the below options should be used.

  • Use Apache(Dispatcher) as the Reverse Proxy - AEM as Cloud enables mod_proxy and mod_proxy_http through this, you can proxy the specific requests directly from Apache to target(as the proxy will be handled by Apache, the Dispatcher module skipped)
  • Enable the Reverse Proxy through your own CDN - Assuming AEM as a Cloud won't allow us to customize the configurations to connect with non-AEM targets; if you enable your own CDN, the traffic can be proxied directly from your CDN to the required target.
  • Enable a Filter in AEM that selectively sends the request to a different target and renders the response.

Regards

Albin

https://www.albinsblog.com

1 reply

AlbinIs1Community AdvisorAccepted solution
Community Advisor
April 20, 2023

I dont think there is any default servlet in AEM to meet this requirement; in my perspective, either one of the below options should be used.

  • Use Apache(Dispatcher) as the Reverse Proxy - AEM as Cloud enables mod_proxy and mod_proxy_http through this, you can proxy the specific requests directly from Apache to target(as the proxy will be handled by Apache, the Dispatcher module skipped)
  • Enable the Reverse Proxy through your own CDN - Assuming AEM as a Cloud won't allow us to customize the configurations to connect with non-AEM targets; if you enable your own CDN, the traffic can be proxied directly from your CDN to the required target.
  • Enable a Filter in AEM that selectively sends the request to a different target and renders the response.

Regards

Albin

https://www.albinsblog.com