Hi, I'm trying to set up an apache vhost which either redirects to a proxy or sets its DocumentRoot and then opens a <Perl></Perl> block, and then eventually processes the request through a mod_perl handler.. My rewrite rule: RewriteEngine On RewriteCond %{REQUEST_FILENAME} ^/tfl RewriteRule ^/(.*) http://x.x.x.net:82/$1 [P] Now this block will happily redirect when it alone is the content of my vhost conf., however the second I add a DocumentRoot and a mod_perl handler, it decides to send 'everything' to the handler and totally ignore my rewrite rule. I'd be grateful if someone, able to see what I'm missing, would let me know why this won't work as is. I've attached the relevant excerpt below - the nature of the modules does not matter as much as my ordering, I'd assume: #################################################################### RewriteEngine On RewriteCond %{REQUEST_FILENAME} ^/blah RewriteRule ^/(.*) http://x.x.x.net:82/$1 [P] PerlFreshRestart On DocumentRoot /home/httpd/proj/html PerlSetVar ProjectName proj_proxy PerlModule HTML::Apache::ASPerl <Perl> use lib '/home/httpd/proj/lib'; HTML::Apache::ASPerl::setupServer('proj_proxy','/home/httpd/proj/asperl.conf'); </Perl> PerlModule Proj <Location /> SetHandler perl-script PerlHandler HTML::Apache::ASPerl </Location> ########################################################################### Many Thanks, R. -- Rafiq Ismail Software Engineer and Systems Administrator http://www.codix.net "All the best people in life seem to like Linux." - Steve Wozniak