Security: By placing WildFly behind Apache, you only need to worry about connections from a single point of entry. WildFly can be configured to accept connections from a single IP (the server hosting Apache) and will not be accessible directly from the Internet. Essentially, Apache becomes a smart proxy server.
Load balancing and clustering: Using Apache as a frontend, you can distribute traffic to multiple WildFly server instances. If one of your servers fails, the communication transparently continues to another node in the cluster.
As stated previously, connecting Apache and WildFly can be done in one of two ways: by either using Tomcat's
mod_jk library or Apache's
mod_proxy libraries. As the installation of both