httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jos...@slive.ca>
Subject Re: [users@httpd] redirection based on client IP address (only first two octets) / External Rewriting Engine
Date Mon, 18 Nov 2002 18:10:44 GMT

On Mon, 18 Nov 2002 Saqib.N.Ali@seagate.com wrote:

>
> Thanks Joshua, I will try this Rule.
>
> However I have come to realize our problem is more complex, and can not be
> solved via simple rewrite rules. I think I will need to use External
> Rewrite Rule to perform the redirection task.
> http://httpd.apache.org/docs-2.0/misc/rewriteguide.html mentions a perl
> script can be written to act as the Rewrite Map. Can anyone give me
> examples of such a script. How to pass in the input and what output is
> expected.

See:
http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html#rewritemap

To summarize:
Take new-line-terminated input on stdin, write output to stdout.

Joshua.


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