I have the following in a .htaccess file as a test:
RewriteEngine on RewriteRule ^(.*)$ /backend/$1
This works as expected. I was able to get rewrite logging working with the following in apache2.conf:
<IfModule mod_proxy.c> RewriteLog "/tmp/REWRITE.log" RewriteLogLevel 9 </IfModule>
The log file is created and logs debug info as expected. However, when I delete the .htaccess file, change the apache2.conf directive as follows, and restart apache to do the equivalent globally, it doesn't work.
<IfModule mod_proxy.c> RewriteLog "/tmp/REWRITE.log" RewriteLogLevel 9 RewriteEngine on RewriteRule ^(.*)$ /backend/$1 </IfModule>
I'm using Apache/2.0.55 on Ubuntu.
Help!