www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pablo A.Delgado <pol...@yahoo.com>
Subject mod_rewrite/10090: RewriteMap MapType 'rnd' not working
Date Fri, 08 Mar 2002 18:41:40 GMT

>Number:         10090
>Category:       mod_rewrite
>Synopsis:       RewriteMap MapType 'rnd' not working
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Fri Mar 08 10:50:00 PST 2002
>Originator:     polka0@yahoo.com
>Release:        1.3.23
I compile Apache 1.3.23 using de following
./configure --prefix=/usr/local/apache --enable-module=rewrite
make install

Then I configured the httpd.conf adding a virtual host like this:

<VirtualHost _default_:8000>
        DocumentRoot /home/pdelgado/supertest
        RewriteEngine   on

        RewriteMap  random    rnd:/home/pdelgado/supertest/list.rnd
        RewriteRule   ^/(.+)$ $1${random:$1}

        RewriteLogLevel 9
        RewriteLog      /home/pdelgado/supertest/rewrite.log


the file 'list.rnd' contains
test      index1.html|index2.html|index3.html|index4.html|index5.html
other     index1.html|index2.html|index3.html


Only show the first one of the randomized series. In this case index1.html.
I tried every version of apache conuting back from 1.3.23 And the problem seems to be the

It only worked perfectly fine in version 1.3.19. The one I am using right now.
 [In order for any reply to be added to the PR database, you need]
 [to include <apbugs@Apache.Org> in the Cc line and make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database automatically because of the potential for mail   ]
 [loops.  If you do not include this Cc, your reply may be ig-   ]
 [nored unless you are responding to an explicit request from a  ]
 [developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]

View raw message