You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Zac Stevens <zt...@cryptocracy.com> on 2002/09/17 09:41:55 UTC

Re: [users@httpd] Apache 2.0.40, mod_headers and RequestHeader

On Tue, Sep 17, 2002 at 10:27:01AM +0200, Clement.LASSERE@edf.fr wrote:
> Header add  Hostname  "%{HTTP_HOST}"
> 
> But when I try to start apache, it complains about a syntax error
> concerning this line :
> 
> Syntax error on line 1291 of /path_to_apache-2.0/conf/httpd.conf:
> Unrecognized Header or RequestHeader directive %

As I understand it, the format for specifying environment variables in the
Header directive is "%{var}e" - note the trailing 'e'.

I suspect this is the reason why your example is failing.

HTH,


Zac

---------------------------------------------------------------------
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