Search code examples
apachetomcatmod-proxymod-jkbitnami

no-jk Equivalent in mod_proxy


I've always used Apache + Tomcat via mod_jk. To tell Apache not to forward /recources to Tomcat, you just put this in vhosts:

 SetEnvIf Request_URI "/resources/*" no-jk

How do you do the same thing with mod_proxy. If it matters, I'm using the bitnami tomcat stack and there is a tomcat.conf with:

<Location />
  ProxyPass ajp://localhost:8009/
</Location>

Do I change that somehow?


Solution

  • #<Location />
    #  ProxyPass ajp://localhost:8009/
    #</Location>
    
    ProxyPass /resources !
    ProxyPass / ajp://localhost:8009/