Apache ProxyPass
I have an application whith the next structure:
/application (html files)
/application/css (css files)
/application/img (images)
/application/classes -> I want this to redirect to a application server (JBoss)
How do I configure apache for this?
Why doesn't work if I do:
ProxyPreserveHost On
ProxyPass /application !
ProxyPass /application/css !
ProxyPass /application/img !
ProxyPass /application/classes http://jboss_server:8080/
ProxyPassReverse /application/classes http://jboss_server:8080
Ensure, that the Servers have the same structure!
ProxyPass /application/classes http://jboss_server:8080/application/classes
ProxyPassReverse /application/classes http://jboss_server:8080/application/classes
You haven't to use the other proxypass values, because "classes" is under "application"! So the proxy will only be invoked if you use /application/classes
and not if you use /application/img
.