Before posting in the CSDN forum to ask a site static solution. http://bbs.csdn.net/topics/390672563
The website uses springmvcand intercepts requests with a suffix of .htm. I hope this logic is applied. If xxx.htm is requested, the website will first determine whether there is a corresponding static resource file. If yes, it will use this file to respond. If no, it will go to the springmvc method and.
Later, I learned about the combination of apache and tomcat, the processing of static resources by apache, and the solution I found.
Hosts file
The configuration is as follows:
RewriteEngine on
RewriteCond/myHostPath/% {REQUEST_FILENAME} l-f
RewriteRule ^/(. *) \. htm $ limit 1.html [P, L]
. Htm requests are processed by tomcat, that is, springmvc.
All other requests are sent to apache
This is JkMount/*. htm ajp13 configured by the tomcat Connector.