In apache 2.2 you need to have 2 partitions proxy.
ProxyRequests On
ProxyVia On
<ProxyMatch ^((?!www\.proxytarget\.com).)*$>
Order deny,allow
Deny from all
</ProxyMatch>
<ProxyMatch www\.proxytarget\.com >
Order deny,allow
Deny from all
Allow from 127.0.0.1
</ProxyMatch>
On apache 2.4, this would be a lot easier, because you could use If directive regexp instead to invert the match for the domain name.
.