httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Josh Trutwin <j...@trutwins.homeip.net>
Subject Re: [users@httpd] RewriteMap questions
Date Thu, 31 May 2007 02:25:30 GMT
On Wed, 30 May 2007 16:20:23 -0400
"Joshua Slive" <joshua@slive.ca> wrote:

> No. The %0 notation is specific to mod_vhost_alias. It can't be used
> in any other directive. (In particular, RewriteMaps are initialized
> at server startup, so it doesn't work to make their location a
> per-request variable.)
> 
> You can either manually define a separate rewritemap for each
> hostname, or you can use a single rewritemap for all the hosts and
> use the hostname as part of the lookup key.

Crud - or I guess I could go back to the external program method and
have it parse the URL.  None of these solutions is ideal, but I think
that's the best option in front of me.  

Out of curiosity - how would you use the hostname in the lookup key?

Thanks,

Josh

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message