I have both Apache and Wildfly installed on a Ubuntu 14.04 system. Now I'd like to make Wildfly (locally
http://localhost:8080) accessible from Apache (
http://webserver/wildfly). How would I have to do that?
Sofar, I've enabled the two mods:
And I've added at the end of the document
ProxyRequests off ProxyPass /wildfly/ http://localhost:8080/ ProxyPassReverse /wildfly/ http://localhost:8080/
Now half of it works, but the paths are not transformed right. The path to one of my apps running on Wildfly is:
But all links on its page are processed like this:
http://webserver/testproj/Page1.xhtml http://webserver/testproj/Page2.xhtml http://webserver/testproj/Page3.xhtml
rather than this:
http://webserver/wildfly/testproj/Page1.xhtml http://webserver/wildfly/testproj/Page2.xhtml http://webserver/wildfly/testproj/Page3.xhtml
If I run Wildfly locally, everything works fine. This lets me believe that there must be an error in the Apache Reverse Proxy configuration. Is that right? What must I do to have Apache parse the right addresses / links?