[Previous ref: PR 10090 - Pablo Delgado -] I compiled Apache 2.036 using: ./buildconf ./configure --with-mpm=worker \ \ --enable-access \ --enable-alias \ --enable-auth \ --enable-cgi \ --enable-rewrite \ \ --disable-actions \ --disable-cgid \ --disable-asis \ --disable-auth_anon \ --disable-autoindex \ --disable-env \ --disable-imap \ --disable-include \ --disable-isapi \ --disable-status \ --disable-userdir make make install Then I configured a Virtual Host like this: <VirtualHost 123.123.123> RewriteEngine on RewriteMap random rnd:/home/httpd/randomrew.txt RewriteRule ^/testrnd/index.html$ http://${random:tot1} [R] </VirtualHost> 'randomrew.txt' contains: tot1 www.site1.com/|www.site2.com/|www.site3.com/ Only happen the redirect to 'www.site1.com' [the first in the list]. The same rewrite worked without any problem in all Apache 1.3.1x versions.
This has now been fixed. We just missed the cutoff for 2.0.37, so expect the fix in 2.0.38. For now, you can use this small patch to mod_rewrite: http://cvs.apache.org/viewcvs.cgi/httpd-2.0/modules/mappers/mod_rewrite.c.diff? r1=1.121&r2=1.122 Thanks for your report, and thanks for using Apache!
*** Bug 9783 has been marked as a duplicate of this bug. ***