Expand my Community achievements bar.

SOLVED

AEM Cloud have reverse proxy serlvet?

Avatar

Level 9

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.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

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