I have been asked to front an eXo Platform installation (running on Tomcat) with Apache HTTPD in such a way that URLs that are normally available at:
are made available at:
I have made some progress with lots of ProxyPass and ProxyPassReverse directives mapping /public, /eXoResources, etc to their corresponding ajp:// URLs, before having a final catch--all entry:
ProxyPass / ajp://localhost:8009/portal/private/myportal/
ProxyPassReverse / ajp://localhost:8009/portal/private/myportal/
However, documentation on eXoPlatform's website is a bit sparse and the only thing I can find is this, which seems to avoid modifying configuration on the Tomcat side, and instead relies on Apache doing massses of in-line modification of Tomcat's responses using mod_substitute, which I really don't like the look of.
So I have a few questions:
- Is this approach fundamentally flawed - is it actually possible to achieve what we want or does it introduce ambiguity into the URLs (eg what do we do with the few /public/ URLs we have)?
- Will the above properties help?
- Is the use of mod_substitute the only way of achieving this?
Thanks in advance for any help!
May I suggest you following settings for mod_proxy and ajp :
ProxyPass / ajp://localhost:8009/
ProxyPassReverse / ajp://localhost:8009/
You could use also mod_jk :
# Set properties for worker1 (ajp13)
JkMount /* w1