If the client requests a file ending with .js
from Apache, I'd like Apache to first check if there is a .js.min
file of the same basename and serve it if it exists, and otherwise, serve the original .js
file. Can I do that with the standard Apache mods that come with Debian?
Absolutely.
You may want the
L
flag as well, if you know you don't need further rewriting.