Setting up Reverse Proxy Server for Non-SSL Communication

Procedure

  1. Navigate to the following directory of Apache HTTP server installation:
    APACHE_HOME/conf
  2. Open the httpd.conf file for editing.
  3. Uncomment the following lines:
       LoadModule proxy_module modules/mod_proxy.so
       LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
       LoadModule proxy_http_module modules/mod_proxy_http.so
  4. Add the following contents:
    <VirtualHost *:ListenPort>
    ProxyPreserveHost On
    # Servers to proxy the connection, or;
    # List of application servers:
    # Usage:
    # ProxyPass / http://[IP Addr.]:[port]/
    # ProxyPassReverse / http://[IP Addr.]:[port]/
    # Example:
       ProxyPass / http://APIExchangeGateway_Host:HTTP_PORT/
       ProxyPassReverse / http://APIExchangeGateway_Host:HTTP_PORT/
    ServerName localhost
    </VirtualHost>

    where,

    • ListenPort is the port on which Apache HTTP server runs. The ListenPort must match the value specified by Listen directive.
    • APIExchangeGateway_Host is the machine on which TIBCO API Exchange Gateway runs.
    • HTTP_PORT is the HTTP port for TIBCO API Exchange Gateway.
    Note: To forward a specific operation request, include the request URI in the ProxyPass and ProxyPassReverse directives. For example, define the directives for ping operation URI, as follows:
    ProxyPass /ping http://APIExchangeGateway_Host:HTTP_PORT/ping 
    ProxyPassReverse /ping http://APIExchangeGateway_Host:HTTP_PORT/ping
  5. Save the changes to the file.