Forum Moderators: phranque
It works fairly well. However, the inherited rules are processed after the virutal-host specific ones. That seems logical in many ways, since the newer ones should probably take precedence. Except in this case, the bad bot banning is general and doesn't need to be "over-ruled".
So, you can guess what happens if you have a RewriteRule with [something,L] defined in a virtual host - that's the last rule to get processed, and the nicely written inherited ones get skipped.
Any ideas? Am I missing something trivial? Is there a way to order the inheritance, or must I remove all the L flags in the virtual-host rules, and re-check that they all still work...?
Welcome to WebmasterWorld!
I don't have an definitive answer for you, but we now have a possibly-related discussion [webmasterworld.com] going which might be useful to you.
Jim
Interesting question, indeed. I don't know if it is even possible to make inherited rules take precedence over the virtualhost specific stuff.
<rambling>
What if you were to incorporate that "Bad bot stuff" in "Section 2: 'Main' server configuration" of your httpd.conf? Would that not help?
</rambling>