Because of the need, the jkmount instructions that would otherwise work in the global domain mod_jk.conf only work in a certain domain:
In fact, I want to make Jkmount/*.htm controller only take effect in the virtual domain.
Original configuration:
Apache httpd.conf:
Include "conf/mod_jk.conf"
Mod_jk.conf:
LoadModule Jk_module modules/mod_jk-1.2.23-apache-2.2.x-linux-i686.so
Jkworkersfile conf/workers.properties
Jklogfile Logs/mod_jk.log
Jkloglevel Error
Jkmount/*.jsp Controller
Jkmount/*.do Controller
Jkmount/*useraction.zip Controller
...
Jkmount/*.jar Controller
Jkmount/*.htm Controller
jkmount/servlet/* Controller
...........
My workaround:
1. Comment out the include "conf/mod_jk.conf" in Apache;
2. Use the four directives of the yellow font above as the global configuration of the virtual host profile httpd-vhost.conf:
LoadModule Jk_module modules/mod_jk-1.2.23-apache-2.2.x-linux-i686.so
Jkworkersfile conf/workers.properties
Jklogfile Logs/mod_jk.log
Jkloglevel Error
Namevirtualhost *:80
<virtualhost *:80>
...
Include "/usr/local/apache22/conf/mod_jk.conf"
</VirtualHost>
3. Reload the configuration file to make it effective:
/usr/local/apache22/bin/httpd-k Graceful