4.2.1. Connecting via HTTP protocol (Apache mod_proxy)

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 /etc/httpd/conf/ directory. 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/


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/

For more details on mod_proxy, refer to this documentation.

Copyright ©. All rights reserved. eXo Platform SAS
blog comments powered byDisqus