Bug 58893 - Document that RewriteMap names must be unique across the server
Summary: Document that RewriteMap names must be unique across the server
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Documentation (show other bugs)
Version: 2.5-HEAD
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: HTTP Server Documentation List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-19 19:46 UTC by Rich Bowen
Modified: 2016-02-08 16:24 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rich Bowen 2016-01-19 19:46:11 UTC
As per the comment at http://httpd.apache.org/docs/current/rewrite/rewritemap.html#comments_section RewriteMap names must be unique across the entire server.
Comment 1 Sean Timmins 2016-02-08 16:24:55 UTC
Have tried the following simple config on v2.2.24 and v.2.4.16 and both maps, though they have the same name, work fine.

<VirtualHost *:8080>
    ServerName site1

    RewriteEngine on
    RewriteMap testmap prg:/path/to/testmap1.sh
    RewriteCond %{REQUEST_URI} !^/Vhost1/
    RewriteCond ${testmap:REDIRECT} (.+)
    RewriteRule /?(.*) /Vhost1/%1 [L,R]
</VirtualHost>

<VirtualHost *:8080>
    ServerName site2

    RewriteEngine on
    RewriteMap testmap prg:/path/to/testmap2.sh
    RewriteCond %{REQUEST_URI} !^/Vhost2/
    RewriteCond ${testmap:REDIRECT} (.+)
    RewriteRule /?(.*) /Vhost2/%1 [L,R]
</VirtualHost>

So misreported or possibly already fixed?