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.:
- Load the two modules listed below by uncommenting the following two line in the httpd.conf file:
- 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:
- Save the httpd.conf file and then restart Apache.
- Now when you enter the http://apache_server/CASTAD the request will be redirected to
- 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.