You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Germer, Carsten" <ca...@desy.de> on 2006/10/26 16:52:37 UTC

[users@httpd] 'Header set' with 2.2

Heya,

we use Apache 2.2 as frontend servers to serve some static content, as
proxy and for virtual hosts.
Now I want to have the "Server" header being set to "Apache" no matter
what, may it be static content, from a virtual host or proxying from the
application server in the back.

I experimented with mod_headers
http://httpd.apache.org/docs/2.2/mod/mod_headers.html and searched the
documentation for the last few hours.
But I can't seem to find the place where to put that 'Header set Server
"Apache"' line so it is valid for _all_ answers to requests...

Anyone a good idea for me?

Cheers! /Carsten

------------------------------------------------------------------------
Carsten Germer         Deutsches Elektronen Synchrotron (Web-Office, IT)
phone:  +49-40-8998-1661                                    Notkestr. 85
web: http://wof.desy.de                                    22607 Hamburg
e-mail: carsten.germer@desy.de                                   Germany
------------------------------------------------------------------------

---------------------------------------------------------------------
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] 'Header set' with 2.2

Posted by "Germer, Carsten" <ca...@desy.de>.
Hm, I don't want yet another module/external system in the whole loop on
my machines...
Shouldnt 'Header set Server "Apache"' do the trick somehow? It sure
reads like it in the docs.
Anyway, I'll go snoop around our network if there isn't any other
Firewall or LoadBalancer in the LAN which can do this for me :)

Thanks /Carsten


>-----Original Message-----
>From: Vincent Bray [mailto:noodlet@gmail.com] 
>Sent: Friday, October 27, 2006 4:34 PM
>To: users@httpd.apache.org
>Subject: Re: [users@httpd] 'Header set' with 2.2
>
>
>On 10/27/06, Germer, Carsten <ca...@desy.de> wrote:
>> Hi,
>> I've already set "ServerTokens Prod" in 
>"extra/httpd-default.conf". That
>> doesn't fix it entirelly.
>> Still the "main" Server gives me back like "ServerTokens Full" and a
>> Proxyd answer from the application Server comes with a 
>Server-Header of
>> the appServer. I need them all set to look like Prod, no matter where
>> they come from...
>
>I suspect that apache is doing the Right Thing here with respect to
>the rfcs. Still, you might try out mod_security. It is able to change
>the Server: header.
>
>-- 
>noodl
>
Hi,
I've already set "ServerTokens Prod" in "extra/httpd-default.conf". That
doesn't fix it entirelly.
Still the "main" Server gives me back like "ServerTokens Full" and a
Proxyd answer from the application Server comes with a Server-Header of
the appServer. I need them all set to look like Prod, no matter where
they come from...

Cheers /Carsten

>-----Original Message-----
>From: Aleksandar Lazic [mailto:al-httpdusers@none.at] 
>Sent: Thursday, October 26, 2006 7:16 PM
>To: users@httpd.apache.org
>Subject: Re: [users@httpd] 'Header set' with 2.2
>
>
>Hi,
>
>On Don 26.10.2006 16:52, Germer, Carsten wrote:
>>
>>Anyone a good idea for me?
>
>Try ServerTokens Prod
>
>http://httpd.apache.org/docs/2.2/mod/core.html#servertokens
>
>Hth
>
>Aleks
>
>---------------------------------------------------------------------
>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
>
>

<original>
we use Apache 2.2 as frontend servers to serve some static content, as
proxy and for virtual hosts.
Now I want to have the "Server" header being set to "Apache" no matter
what, may it be static content, from a virtual host or proxying from the
application server in the back.

I experimented with mod_headers
http://httpd.apache.org/docs/2.2/mod/mod_headers.html and searched the
documentation for the last few hours.
But I can't seem to find the place where to put that 'Header set Server
"Apache"' line so it is valid for _all_ answers to requests...

Anyone a good idea for me?
</original>

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


Re: [users@httpd] 'Header set' with 2.2

Posted by Vincent Bray <no...@gmail.com>.
On 10/27/06, Germer, Carsten <ca...@desy.de> wrote:
> Hi,
> I've already set "ServerTokens Prod" in "extra/httpd-default.conf". That
> doesn't fix it entirelly.
> Still the "main" Server gives me back like "ServerTokens Full" and a
> Proxyd answer from the application Server comes with a Server-Header of
> the appServer. I need them all set to look like Prod, no matter where
> they come from...

I suspect that apache is doing the Right Thing here with respect to
the rfcs. Still, you might try out mod_security. It is able to change
the Server: header.

-- 
noodl

---------------------------------------------------------------------
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] 'Header set' with 2.2

Posted by "Germer, Carsten" <ca...@desy.de>.
Hi,
I've already set "ServerTokens Prod" in "extra/httpd-default.conf". That
doesn't fix it entirelly.
Still the "main" Server gives me back like "ServerTokens Full" and a
Proxyd answer from the application Server comes with a Server-Header of
the appServer. I need them all set to look like Prod, no matter where
they come from...

Cheers /Carsten

>-----Original Message-----
>From: Aleksandar Lazic [mailto:al-httpdusers@none.at] 
>Sent: Thursday, October 26, 2006 7:16 PM
>To: users@httpd.apache.org
>Subject: Re: [users@httpd] 'Header set' with 2.2
>
>
>Hi,
>
>On Don 26.10.2006 16:52, Germer, Carsten wrote:
>>
>>Anyone a good idea for me?
>
>Try ServerTokens Prod
>
>http://httpd.apache.org/docs/2.2/mod/core.html#servertokens
>
>Hth
>
>Aleks
>
>---------------------------------------------------------------------
>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
>
>

<original>
we use Apache 2.2 as frontend servers to serve some static content, as
proxy and for virtual hosts.
Now I want to have the "Server" header being set to "Apache" no matter
what, may it be static content, from a virtual host or proxying from the
application server in the back.

I experimented with mod_headers
http://httpd.apache.org/docs/2.2/mod/mod_headers.html and searched the
documentation for the last few hours.
But I can't seem to find the place where to put that 'Header set Server
"Apache"' line so it is valid for _all_ answers to requests...

Anyone a good idea for me?
</original>

---------------------------------------------------------------------
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] 'Header set' with 2.2

Posted by Aleksandar Lazic <al...@none.at>.
Hi,

On Don 26.10.2006 16:52, Germer, Carsten wrote:
>
>Anyone a good idea for me?

Try ServerTokens Prod

http://httpd.apache.org/docs/2.2/mod/core.html#servertokens

Hth

Aleks

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