Page tree
Skip to end of metadata
Go to start of metadata

Summary: Here we have specified one of several approaches for configuring a reverse proxy for the CAST web applications to hide the application server or to take advantage of some specific Apache configuration.

This method assumes that you have installed Apache HTTP Server (available at http://httpd.apache.org/download). We recommend using version 2.4 (minimum) - 2.2 is NOT recommended.

The steps required to establish the reverse proxy are as follows:

  • Edit the httpd.conf file available in the Apache installation location e.g.:
%ProgramFiles(x86)%\Apache Software Foundation\Apache2.4\conf
  • Load the two modules listed below by uncommenting the following two line in the httpd.conf file:
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so 
  • At the end of the httpd.conf file add the reverse proxy configuration as follows - adapt the following examples to your own environment. The ProxyPass option allows you to indicate the application server URLs you want to make available to Apache, and the ProxyPassReverse option ensures that redirects are handlded correctly:
ProxyPass /CASTAD http://application_server:8080/CASTAD
ProxyPass /manager http://application_server:8080/manager/html
.......
ProxyPassReverse / http://application_server:8080/
  • Save the httpd.conf file and then restart Apache.
  • Now when you enter the http://apache_server/CASTAD the request will be redirected to http://application_server:8080/CASTAD
  • You can add multiple entries for ProxyPass depending on the number of sites/URLs/instances you have deployed on different machines or same machine.
  • When using a Reverse Proxy to manage access to the CAST AIC Portal, you must ensure that you configure the publicUrl option in the CAST AIC Portal web.xml file. See Installing and configuring the CAST AIC Portal.
  • No labels