With the glue method, it is necessary to configure the Apache HTTP daemon to work as the reverse proxy, which will redirect the client's requests to the app server's HTTP connector.
For this connection type, you need to include the mod_proxy module in the HTTP daemon configuration file. This can be found in the
httpd.conf file, which is usually located at the
However, depending on your OS, this path may vary. You will then need to add some directives to your virtual host configuration.
ServerName Enter your server DNS name here ProxyRequests Off ProxyPreserveHost On ProxyPass "/" http://YOUR_AS_HOST:AS_HTTP_PORT/ ProxyPassReverse "/" http://YOUR_AS_HOST:AS_HTTP_PORT/
YOUR_AS_HOST - host (IP or DNS name) is the location of your application server. If you run the HTTP daemon on the same host as your app server, you can change this to localhost.
AS_HTTP_PORT - port is the location where your app server will listen to incoming requests.
For Tomcat, this value is 8080 by default. You can find the value at
In the above example, the HTTP daemon will work in the reverse proxy mode (ProxyRequests Off and ProxyPreserveHost On) and will redirect all requests to the tcp port 8080 on the localhost. Assume that your DNS server is exoplatform.com, the configuration of a virtual host looks like the following:
<VirtualHost *:80> ServerName exoplatform.com ProxyRequests Off ProxyPreserveHost On ProxyPass "/" http://localhost:8080/ ProxyPassReverse "/" http://localhost:8080/ </VirtualHost>
For more details on mod_proxy, refer to this documentation.