Stoping it on a virtual site is just comenting out on your httpd.conf file these lines.
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php
To stop it executing on a particular directory of a virtual site I have no clue.