How to configure mod_proxy to block every site except one
问题 I'm trying to set up mod proxy to block all traffic except to a specific domain. I can configure it to block individual domains using the ProxyBlock directive, and I can block everything using ProxyBlock *. Is there a way to block everything but one domain? Thanks, -Andrew 回答1: On apache 2.2 you need to have 2 proxy sections. ProxyRequests On ProxyVia On # block all domains except our target <ProxyMatch ^((?!www\.proxytarget\.com).)*$> Order deny,allow Deny from all </ProxyMatch> # here goes