httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tom <pomarancd...@post.cz>
Subject Re: [users@httpd] ignore/remove X-Forwarded-For
Date Thu, 02 Aug 2007 14:41:22 GMT
Many thanks again !!
One last think, how do I match the whole string with (.*) I match nothing.. I tried some things
like (.*+) and (.+) but none of them seems to work.

Thanks
Tomas
> ----------------------------------------
> On 8/2/07, tom <pomarancde23@post.cz> wrote:
> > Hi,
> >
> >  thanks, works fine. Do you know if I can rename a header? I was trying to do
> it like this
> >
> > SetEnvIf X-Powered-By "(.*)" HAVE_X-Powered-By=$1
> > Header add X-Original-Powered-By $HAVE_X-Powered-By$ env=HAVE_X-Powered-By
> > Header unset X-Powered-By env=HAVE_X-Powered-By
> >
> > The problem is that I don't know how to access the HAVE_X-Powered-By variable
> at the second line ($HAVE_X-Powered-By$).
> >
> 
> Use %{HAVE_X-Powered-By}e
> See:
> http://httpd.apache.org/docs/2.2/mod/mod_headers.html#header
> 
> 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


Mime
View raw message