Comment 22 for bug 1394403

Revision history for this message
Matthias Ferdinand (mf+ubuntu1) wrote :

To reproduce (s. attachment):

vhost bla.conf (requires a2enmod proxy_http)
    enables RewriteEngine/RewriteLogging and Proxy
   DocumentRoot /var/www/bla

/var/www/bla/.htaccess:
RewriteRule ^(.*)$ http://10.110.110.29/$1 [P]

no other files in /var/www/bla/

request / (as in attached reproduce-1394403.sh):
$ (printf "GET / HTTP/1.0\r\nHost: bla\r\n\r\n"; sleep 1) | netcat localhost 80

in the ErrorLog (/var/log/apache2/bla_error.log) you can see that after the first
  go-ahead with proxy request proxy:http://10.110.110.29/ [OK]
mod_rewrite is called a second time for the same request, but this time
with /index.html instead of just /
This is from mod_dir not honoring the final decision of mod_rewrite ([P]).

Matthias