httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From allan juul <>
Subject [users@httpd] rewritemap environment variables
Date Fri, 26 Aug 2005 18:28:27 GMT

does anyone know the limitations specs for environment variables, 
specifically when used via mod_rewrite prg ?

i am able to hardcode a variable with a value of more than 2048 bytes

# this will work
RewriteRule ^/(.*) - [E=VAR_1:long_string_more_than_2048]
RequestHeader set REQ_TEST_1 %{VAR_1}e

but a program that return more than 2048 the set variable value will get 
truncated at 2048

# REQ_TEST_2 will have 2048 bytes
RewriteRule ^/(.*) [E=VAR_2:${mapprg:some_argument}]
RequestHeader set REQ_TEST_2 %{VAR_2}e


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message