[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: rewrite and change document root on apache



thanks Erdmut

now on my rule 've

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

on the rewrite log I see:

rewrite /stats -> /var/reports/www.virtualhost1.com/
'/var/reports/virtualhost1.com/' to get passed through to next API URI-to-filename
handler

and then appears a 404 again :(

obviously  /var/reports/www.virtualhost1.com/ exists on my system and has a
index.html on it !




>
> > 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
>

--
Jaume Teixi
    Administrador de Sistemes
    6TEMS - Ducform, SA
    http://www.6tems.com





Reply to: