[EMAIL PROTECTED] wrote:

> thank you Craig,
> I've setup Document Root for each virtual host on
>          /var/www/www.virtualhost1.com
>
> I made stats for each virtual host on
>         /var/reports/www.virtualhost1.com
> 
> On Apache I want to forward http://virtualhost1.com/stats to
> /var/reports/virtualhost1.com
> 
> I've setup:
> 
> Alias        /reports/  /var/reports/
> RewriteRule  ^/stats(.*)        /reports/%{SERVER_NAME}$1
> 
> but Alias has no effect on rewrite and is looking from default Document
> Root:
> /var/www/www.virtualhost1.com/reports/www.virtualhost1.com
> 
> and produces a 404  :(
> 
> 
> bests,
> jaume.

Hi,

( I just saw this on the archives ... as I'm not subscribed to the list,
I don't know whether someone already answered this, anyway: )

try putting [PT] (pass-through) at the end of the line with the rewrite
rule. This has the effect of giving mod_alias also a chance to process
the URL...

RewriteRule  ^/stats(.*)        /reports/%{SERVER_NAME}$1  [PT]

In this particular case: why not directly rewrite it to
"/var/reports/..."?


Hope that helps,

-- 
Erdmut Pfeifer
science+computing gmbh

-- Bugs come in through open windows. Keep Windows shut! --

Reply via email to