The time has come to think about deploying it to production webserver now, and I was hoping I'd be able to hide it behind apache on the webserver using a virtual host and proxypass configuration something like:
Superficially, this all appears to work fine. However, any struts-generated paths such as those that result from the <html:form> and <html:link> tags always get generated with the context name, which then breaks my proxypass.
I've spent most of the lst couple of days trying to find an answer on the web, and loads of people have asked a similar question, but there never seems to be a reasonable answer. Some have suggested not using the html taglibrary, which doesn't seem sensible. Others have suggested writing filters to strip the context name, which seems like overkill. There's also talk of using <html:base>, but I'm sure that's missing the point.
This must have been done before. I guess I'm hoping there's a config option somewhere that will force the generated paths to be root-relative.
Can anyone suggest any practical solutions to the problem then? Is the only real answer that I'll need to deploy the app as the ROOT context? That does seem a bit of a limitation. [ October 22, 2006: Message edited by: Andy Westley ]