On Thu, Mar 5, 2009 at 11:01 AM, KK CHN wrote:
> I know I can do it for directories but is it possible for RewriteRule
> section ? How can we do it ?
You can apply authentication to any URL using sections,
and you can apply restrictions to proxying using sections.
It's all in the manual
ServerName mydomain.com
RewriteEngine On
RewriteRule ^/(.*)
http://127.0.0.1:8081/VirtualHostBase/http/www.mydomain.com:80/site1/VirtualHostRoot/$1
[L,P]
ErrorLog /var/log/apache/mysite.com/error_log
CustomLog /var/log/apache/mysite.com/access.log combined
Now every one can access the site