You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2002/06/11 15:01:18 UTC

DO NOT REPLY [Bug 9770] New: - RewriteMap MapType 'rnd' not working

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9770>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9770

RewriteMap MapType 'rnd' not working

           Summary: RewriteMap MapType 'rnd' not working
           Product: Apache httpd-2.0
           Version: 2.0.36
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: mod_rewrite
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: skooks@tiscali.it


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

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org