httpd-users mailing list archives

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

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

./allan

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