httpd-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Malo ...@perlig.de>
Subject Re: Typo in mod_rewrite doc?
Date Mon, 22 Mar 2004 18:12:54 GMT
* Joshua Slive <joshua@slive.ca> wrote:

> 
> On Mon, 22 Mar 2004, Sascha Kersken wrote:
> 
> > Hi there,
> >
> > the "Special Notes" on variables in the description of RewriteCond
> > contains the examples %{HTTP:Proxy-Connection} and %{LA-U:REMOTE_USER}. Is
> > this correct? Doesn't it have to be either %{HTTP:Proxy-Connection} and
> > %{LA-U:Remote-User}, or %{HTTP:PROXY_CONNECTION} and %{LA-U:REMOTE_USER}?
> > Or do HTTP Headers and look-ahead-variables really have a different
> > format?
> 
> Proxy-Connection is an HTTP header, while REMOTE_USER is an env variable,
> so the capitalization is standard and correct.  I'm not really sure if
> mod_rewrite is case-sensitive in this area or not, however.

depends :)
It's normally case insensitive, since it uses apr_tables. There's just one
exception: If you request an environment variable which is not available
within the server structures, but in the inherited system environment. The
fallback getenv() call is case sensitive (at least on *x).

nd

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


Mime
View raw message