[pubcookie-dev] PUBCOOKIE_LOGIN_CONFIG_FILE different virtual host

Steve Losen scl at sasha.acc.Virginia.EDU
Wed Apr 5 05:55:57 PDT 2006


> Hello,
> 
> I have a problem configuring an instance of pubcookie (3.3.0) with apache
> 2.2.0
> 
> I have two virtual host protected with pubcookie. the authorization method
> is ldap fot both, but the url for ldap is different
.
> 
> I’m trying with two different config files, changing the environment
> variable form apache config file:
> 
>                Virtual host 1: SetEnv PUBCOOKIE_LOGIN_CONFIG_FILE
> /usr/local/pubcookie-3.3.0a/config1
>                Virtual host 2: SetEnv PUBCOOKIE_LOGIN_CONFIG_FILE
> /usr/local/pubcookie-3.3.0a/config2
> 
> 
> The problem the config file doesn’t change.
> 
> Can anyone of you send me an example of some virtual host configuration that
> makes it run
..
> 
> Thanks,
> 
> 
> So, this patch was born.  It adds an environment variable that you can
> set (PUBCOOKIE_LOGIN_CONFIG_FILE) within Apache's config file like so:
>     setenv PUBCOOKIE_LOGIN_CONFIG_FILE
> /usr/local/webiso-dev/pubcookie/config-logindev.wisc.edu
> (No wrapping, of course, in case your mailer wraps the long line.)
> within the appropriate VirtualHost.
> 
> 

It sounds like you are trying to set the config file for the login CGI
on the application server.  You can't do that.  The above apache config
must be done on the login server.

Steve Losen   scl at virginia.edu    phone: 434-924-0640

University of Virginia               ITC Unix Support




More information about the pubcookie-dev mailing list