Apache Server configuration support - SetEnv seems to remember old setting

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > September 2007 > SetEnv seems to remember old setting





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author SetEnv seems to remember old setting
mgatt00@gmail.com

2007-09-24, 1:29 pm

Hi all,
I need to set different values for an environment variable accessing
to a specified directories.
I have something like this:

#################TEST#############
Alias /test1/ "/tmp/"
<Directory "/tmp">
SetEnv TEST test1
AddHandler cgi-script .cgi
DirectoryIndex index1.cgi
Options +Indexes +ExecCGI +FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>

Alias /test2/ "/tmp/"
<Directory "/tmp">
SetEnv TEST test2
AddHandler cgi-script .cgi
DirectoryIndex index2.cgi
Options +Indexes +ExecCGI +FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>

despite I set SetEnv in each directory web server seem to remember
only one value (the first it knows).

How Can I tell apache to set the right value for TEST variables?

Thank You

Best Regards

Mauro

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com