rewrite and change document root on apache
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.
Reply to: