JBoss.orgCommunity Documentation
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 /etc/httpd/conf/. However, depending on your OS, this path may vary. You will then need to add some directives to your virtual host configuration.
ProxyRequests Off ProxyPass "/" http://YOUR_AS_HOST:AS_HTTP_PORT/ ProxyPassReverse "/" http://YOUR_AS_HOST:AS_HTTP_PORT/
Details:
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 tomcat/conf/server.xml.
In the above example, the HTTP daemon will work in the reverse proxy mode (ProxyRequests Off) and will redirect all requests to the tcp port 8080 on the localhost. So, the configuration of a virtual host looks like the following:
<VirtualHost *:80> ServerName Enter your server DNS name here RedirectMatch permanent "^/?$" "/portal/" ProxyRequests Off ProxyPass "/" http://localhost:8080/ ProxyPassReverse "/" http://localhost:8080/ </VirtualHost>
For more detail on mod_proxy, refer to this documentation.