|Subject:||Files/Location Matching Problem|
|Posted by:||jesdynf (jesdy…@gmail.com)|
|Date:||Sat, 12 Jun 2010|
I'm missing something very simple. I'm working with an Apache/Tomcat
setup, trying to get Apache to hand off Railo CF templates to Tomcat.
But there's something I just don't get with the matches -- I can't
seem to match cfm files.
The problem isn't the proxying -- my ProxyPass / ProxyPassReverse
statements are solid, and the Location /railo-context directive down
there works fine. Everything under /railo-context (which doesn't
actually exist in the document root -- Tomcat knows where it is) runs
If I issue a Location / statement and just have Apache proxy
everything, *that* works fine too. But any attempt to confine the
proxy to CFM files fails on me -- Apache just returns the source text.
I've confirmed (by removing the proxy statements and replacing them
with SetHandler) that it's the match, not the proxy.
Location /index.cfm works.
Location *cfm doesn't.
Location ~ .*cfm doesn't.
LocationMatch .*cfm doesn't.
LocationMatch .*cfm$ doesn't.
LocationMatch /index.cfm works.
LocationMatch /index*cfm doesn't.
Files and FilesMatch work and don't work exactly the same way.
Apache 2.2 (Debian stable) for reference. I've reproduced the
VirtualHost directive below. Thanks for any help you can offer!
Allow from All
Allow from all
Deny from All
# Possible values include: debug, info, notice, warn, error,
# alert, emerg.
CustomLog /var/log/apache2/access.log combined