Using Apache as a Reverse Proxy
To use Apache as a reverse proxy, you need to make sure the appropriate Apache module is installed and enabled in your Apache instance. For HTTP proxying, this is typically mod_proxy_http. The mod_proxy_http module supports proxied connections that use HTTP or HTTPS.
-
Add a JVM option named
-Dappdynamics.controller.ui.deeplink.url. Set its value to the URL for the Controller, as described in the guidelines above. -
Shut down the Controller.
-
If terminating SSL at the proxy, also set the
-Dappdynamics.controller.services.hostNameand-Dappdynamics.controller.services.portJVM options to the external DNS hostname for the Controller and the external port number, typically 443. -
On the machine that runs Apache, check whether the required modules are already loaded by your Apache instance by running this command:
apache2ctl -M
In the output, look for proxy modules as follows:Theproxy_module (shared) proxy_http_module (shared)
proxy_moduleis a dependency forproxy_module_http. -
If they are not loaded, enable the Apache module as appropriate for your distribution of Apache. For example, on Debian/Ubuntu:
-
Enter the following:
sudo a2enmod proxy_http
-
Restart Apache:
sudo service apache2 restart
-
-
Add the proxy configuration to Apache. For example, a configuration that directs clients requests to the standard web port 80 at the proxy host to the Controller could look similar to this:
<Proxy *> Order deny,allow Allow from all </Proxy> ProxyRequests Off ProxyPreserveHost On ProxyPass / http://controller.example.com:8090/controller ProxyPassReverse / http://controller.example.com:8090/controller
-
Apply your configuration changes by reloading Apache modules. For example, enter:
sudo service apache2 reload
-
Start the Controller.