Welcome to WebmasterWorld Guest from 126.96.36.199
Forum Moderators: bakedjake
How can I make the rules apply to both hosts without duplicating them inside the <VirtualHost> declarations? I noticed that you cannot include files inside those declarations.
I can guess this would be a common issue, but I was unable to find anything in the WW archives or Google. Any help is appreciated.
You could put both sites into one <VirtualHost>, and handle Content changes programatically or possibly with rewrite.
Another thing to look at is Mass Virtual Hosting, you can set up one configuration and have it serve different content, etc based on the host header info. This may solve the problem.
For future reference...
Leave your bad-bot rewrites in your main server config. Inside each of your <VirtualHost> declarations, use the 'RewriteOptions inherit' directive. It will force the host to inherit all rewrite directives from the main server config. You can then add any host-specific rewrites.
Maybe in another three days I will have figured out the other problems. :)