Quantcast
Viewing all articles
Browse latest Browse all 50

Apache - DWR - Tomcat

I had this stupid problem:

My application works fine under http://localhost:8080/mycontext/ but when I try to remove the ports using Apache ProxyPass OR mod_jk then DWR does not work.

Solution:
I didn't use ProxyPass and went for mod_jk(not mod_jk2, etc.):

  •  Install mod_jk properly. I have an old post about it.
  • Include these in the Apache config files:
        JkMount /mycontext/* worker1
        JkMount /mycontext/dwr/* worker1
        JkMount /mycontext worker1
That's it. These JkMounts tell Apache to send /dwr and /mycontext ULRs to the tomcat worker.

Viewing all articles
Browse latest Browse all 50

Trending Articles