Mantis - Resin
Viewing Issue Advanced Details
4838 minor always 11-04-11 15:32 06-13-12 15:58
alex  
ferg  
normal  
closed 4.0.23  
no change required  
none    
none  
0004838: plugin_ignore is ignored for auto-deployed webapplications
- configure mod_caucho.so
- create test app in webapps
- configure resin-web.xml
<web-app xmlns="http://caucho.com/ns/resin"> [^]
  <servlet-mapping url-pattern="/images/" servlet-name="plugin_ignore"/>
</web-app>

make a request to apache for an image http://localhost/test/images/a.gif [^] receive

curl http://debosx:8888/test/images/a.gif [^]
<html>
<head><title>404 Not Found</title></head>
<body>
<h1>404 Not Found</h1>
/test/images/a.gif was not found on this server.

<hr />
<small>
Resin/4.0.23
Server: 'default'
</small>
</body></html>

The module works as expected with web-apps registered in resin.xml

<host ...>
   <web-app id="/test" root-directory="webapps/test"/>

Notes
(0005843)
ferg   
06-13-12 15:58   
This is expected behavior.

When the web-app is deploy through webapps and doesn't have an explicit web-app in the resin.xml, mod_caucho will send all URLs to Resin.