Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

SetEnv seems to remember old setting

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  file w3wp.exe high cpu  
Author Message
mgatt00

External


Since: Sep 24, 2007
Posts: 1



(Msg. 1) Posted: Mon Sep 24, 2007 11:57 am
Post subject: SetEnv seems to remember old setting
Archived from groups: alt>apache>configuration (more info?)

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

 >> Stay informed about: SetEnv seems to remember old setting 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
SetEnv + RewriteCond - I'm triyng to use envirment variables in RewriteCond's, something like this <VirtualHost> RewriteEngine on SetEnv switch true RewriteCond %{ENV:switch} ^true$ RewriteRule ^.*xxx.*$ /toxxx/ [R,L] ... </VirtualHost> But this i...

SetEnv in Apache2 - Hi. I used to include a line like this SetEnv MY_PROGRAM_CONFIG "/usr/local/etc/myprogram/myp.cong in my apache 1.3 httpd.conf But afaik this module is no longer use in apache2, despite it appears on v2 documentation. does anybody know how ca...

Setenv with a dynamic variable - Hi all, I would like to use Setenv directive like this : SetEnv USER_AUTH ${SSL_CLIENT_S_DN_Email} but the result is "${SSL_CLIENT_S_DN_Email}" (with phpinfo) and not the email. Can someone help me ? Thanks!

setting up, please help - I first setup apache 2.0.55, went fine, then I set up mysql 5.0 and it too seemed to of installed just fine. By the way, I am running windows XP Pro SP2. Now I'm trying to set up PHP 5.0.5, but I keep getting the following - Syntax error on line 958...

Need help in setting DocumentRoot - Hi friends, I need help from you in making changes in the DocumentRoot. I have placed my application in a directory "apps" under /var/www/html and when i try opening it as http://computername/ it shows me the directory structure instead of op...
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]