Having these two rules works good:
ProxyPass / http://localhost:8080/app
ProxyPassReverse / http://localhost:8080/app
When client visits, domain.com, Apache calls app server and it works as expected.
Problem is that there is one directory, generated by the app server that I don't want to be prepended with /app.
For example:
domain.com/app/styles/file.css (actual case)
domain.com/styles/files.css (this is how I want this)
Any ideas?
I'm still not 100% sure which way your issue is. If you want it so that when the browser sees something like
It requests the main.css file that tomcat hosts at
/app/styles/main.css
Try:
Conversely, if you want it so that when the browser sees something like
It gets the main.css file that tomcat hosts at
/styles/main.css
Try:
In either case, Apache will match in the order stuff appears in the config file.