Hi all,

I am trying to figure out how to configure appache webserver to set
different UNIX environment variables depending on the url text entered.

eg.  
<base url>/A
would be required to set an enviroment variable Config=A

and
<base url>/B
would be required to set an environment variable Config=B

These two urls will share a common system directory and therefore a
common <Directory> directive.  The CGI scripts in that directory use the
environment variable to determine what database to use etc.  

I have tried with a combination of one <Directory> directive and two
<Location> directives, but the location directives are having no affect.

eg.
Alias <base url>/A <system dir>
Alias <base url>/B <system dir> 

<Directory <system dir>>
  ... 
</Directory>

<Location <base url>/A>
  SetEnv Config A
  ...
</Location>

<Location <base url>/B>
  SetEnv Config B    
  ...
</Location>

I am quite sure that this used to work in versions of apache before 2.2.

Any practical sugestions would be appreciated.

Cheers

Stephen Brennan 

PS: previous posting was sent without a subject line.

---------------------------------------------------------------------
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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to