You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Jeff <je...@bashk.com> on 2005/07/30 08:04:34 UTC

[users@httpd] loadmodule depends on envoirnment varable?

Hi,

I want to do something like this:
.....
SetEnvIfNoCase Referer somewhere limitaccess
.....
then if env "limitaccess" is set,
LoadModule limitipconn_module modules/mod_limitipconn.so
otherwise don't load the mod_limitipconn

Is it possible?

Jeff.


---------------------------------------------------------------------
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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] loadmodule depends on envoirnment varable?

Posted by Jeff <je...@bashk.com>.
Thanks .... I've hacked the mod_limitipconn to read env variable myself.

----- Original Message ----- 
From: "Joshua Slive" <js...@gmail.com>
To: <us...@httpd.apache.org>
Sent: Sunday, July 31, 2005 5:05 AM
Subject: Re: [users@httpd] loadmodule depends on envoirnment varable?


On 7/30/05, Jeff <je...@bashk.com> wrote:
> Hi,
> 
> I want to do something like this:
> .....
> SetEnvIfNoCase Referer somewhere limitaccess
> .....
> then if env "limitaccess" is set,
> LoadModule limitipconn_module modules/mod_limitipconn.so
> otherwise don't load the mod_limitipconn
> 
> Is it possible?

No.  LoadModule is executed at server startup/restart, not at request
time.  It is present for all requests or for none.

You should perhaps ask the developers of mod_limitipconn if they can
include support for acting conditionally on an env variable.

Joshua.

---------------------------------------------------------------------
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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org



---------------------------------------------------------------------
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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org