It's no longer possible to set empty variables in the .htaccess files. mod_env sets them, but #printenv (mod_include) crashes and #echo (mod_include) treats them as not defined - prints "(none)" possible solution: diff -rc org/modules/metadata/mod_env.c patched/modules/metadata/mod_env.c *** org/modules/metadata/mod_env.c Sun Nov 16 00:16:45 2003 --- patched/modules/metadata/mod_env.c Sun Nov 16 00:17:30 2003 *************** *** 158,164 **** /* name is mandatory, value is optional. no value means * set the variable to an empty string */ ! apr_table_setn(sconf->vars, name, value); return NULL; } --- 158,168 ---- /* name is mandatory, value is optional. no value means * set the variable to an empty string */ ! if (value != NULL) { ! apr_table_setn(sconf->vars, name, value); ! } else { ! apr_table_setn(sconf->vars, name, ""); ! } return NULL; }
just curious: when you say "It's no longer possible" you're comparing 1.3 with 2.0.48, right?
Yes, it works with 1.3 (1.3.26 was the latest I checked it on). It doesn't work with 2.0.47 and .48 in .htaccess files (mod_env), but setting it in an html file works (mod_include).
Thanks for the response. I expect to commit the fix in next 24h or so.
Thanks for your efforts! The fix is now in Apache 2.1-dev and has been proposed for merging into the stable branch (2.0.next).
now merged into stable branch for 2.0.49