Is there an optional or house rule for effectiveness of specific weapons versus specific armor types?

In many epic fantasy worlds (as well as in the real world) there are protective measures, designed to protect from specific threats. For example, chainmail provides good protection against slashing attacks, but is not so good versus blunt weapons.

I know D&D isn’t a reality simulator, but, for the sake of diversity, I want to use a houserule that generally makes a particular weapon type more effective against a particular armor type.

To avoid reinventing the wheel, is there a well-known houserule (or an official rules variant, maybe) for making particular kinds of weapons more effective against specific types of armor?