I have an Ubuntu 11.10 with Apache2 that is hosting some sites. I would like to add a site that is hosted in tomcat, so I installed mod_jk and set it up. The tomcat site is hosted under /app over ajp13.
When I include the line
JkMount /app/* ajp13_worker
in inside of the <virtualhost>
in either 000-default or default-ssl, it works perfect. However instead I would rather use the Ubuntu convention of putting new sites in a seperate file inside /etc/apache2/sites-enabled/. I have other sites inside of this path using <Location>
directives.
However, when I put the above line in a file in this path, it does not work. I just get a 404 when trying to access the site. Also, when I instead use something like
<Location /app/*>
JkMount ajp13_worker
</Location>
I still get a 404. Any ideas why the JkMount does no work outside of the even though other Locations do work like this?