You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Rodent of Unusual Size <Ke...@Golux.Com> on 2000/05/25 17:28:26 UTC

SetEnvIf* in .htaccess

A while ago I proposed loosening the restriction on SetEnvIf*
to allow it to be used in .htaccess files (PR#3000).  I think the
only response was from Manoj, wondering if there was any precedent
for allowing the setting of environment variables in .htaccess
files.

In fact there is; mod_rewrite can do it (and the rules permit it).
So.. does anyone object to my allowing the BrowserMatch/SetEnvIf*
directives to be used in .htaccess files under a FileInfo override
(OR_FILEINFO), the same as the Rewrite* directives?
-- 
#ken    P-)}

Ken Coar                    <http://Golux.Com/coar/>
Apache Software Foundation  <http://www.apache.org/>
"Apache Server for Dummies" <http://Apache-Server.Com/>
"Apache Server Unleashed"   <http://ApacheUnleashed.Com/>

Re: SetEnvIf* in .htaccess

Posted by Manoj Kasichainula <ma...@io.com>.
On Thu, May 25, 2000 at 12:09:53PM -0400, Paul J. Reder wrote:
> Rodent of Unusual Size wrote:
> > 
> > A while ago I proposed loosening the restriction on SetEnvIf*
> > to allow it to be used in .htaccess files (PR#3000).  I think the
> > only response was from Manoj, wondering if there was any precedent
> > for allowing the setting of environment variables in .htaccess
> > files.
> > 
> > In fact there is; mod_rewrite can do it (and the rules permit it).
> 
> Actually, you can also legally use SetEnv, PassEnv, and UnsetEnv
> in .htaccess files...

Then I drop my small amount of worry. Go for it.


Re: SetEnvIf* in .htaccess

Posted by "Paul J. Reder" <re...@raleigh.ibm.com>.
Ken,

Rodent of Unusual Size wrote:
> 
> A while ago I proposed loosening the restriction on SetEnvIf*
> to allow it to be used in .htaccess files (PR#3000).  I think the
> only response was from Manoj, wondering if there was any precedent
> for allowing the setting of environment variables in .htaccess
> files.
> 
> In fact there is; mod_rewrite can do it (and the rules permit it).

Actually, you can also legally use SetEnv, PassEnv, and UnsetEnv
in .htaccess files...

-- 

Paul J. Reder

---------------------------------------------------------------------
Noise proves nothing.  Often a hen who has merely laid an egg cackles
as if she laid an asteroid.
		-- Mark Twain
(An apt quote in this political season.)