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.

To configure Apache with mod_proxy_http
  1. 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.

  2. Shut down the Controller.

  3. If terminating SSL at the proxy, also set the -Dappdynamics.controller.services.hostName and -Dappdynamics.controller.services.port JVM options to the external DNS hostname for the Controller and the external port number, typically 443.

  4. 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:
    proxy_module (shared)
    proxy_http_module (shared)
    The proxy_module is a dependency for proxy_module_http.
  5. If they are not loaded, enable the Apache module as appropriate for your distribution of Apache. For example, on Debian/Ubuntu:

    1. Enter the following:
      sudo a2enmod proxy_http
    2. Restart Apache:
      sudo service apache2 restart
  6. 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
  7. Apply your configuration changes by reloading Apache modules. For example, enter:
    sudo service apache2 reload
  8. Start the Controller.

After the Controller starts, test the connection by opening a browser to the Controller UI as exposed by the proxy. To enable Splunk AppDynamics App Agents to connect through the proxy, be sure to set the proxy host and port settings in the proxy, as described in the general guidelines above. Also, be sure to apply any of the other general guidelines described in the general guidelines above.