How to change the HTTP Server header

From Resin 3.0

(Difference between revisions)
Jump to: navigation, search
Line 5: Line 5:
 
To enable this, in the <server> block use
 
To enable this, in the <server> block use
  
==== resin.conf ====
+
==== resin.xml ====
  ...
+
 
  <server>
+
  <resin xmlns="http://caucho.com/ns/resin">
  ...
+
  <cluster id="app-tier">
  <server-header>Foo/1.0</server-header>
+
    ...
  ...
+
    <server-header>Foo/1.0</server-header>
  </server>
+
    ...
 +
    <host id="">
 +
      ...
 +
    </host>
 +
  </cluster>
 +
  </resin>

Revision as of 08:52, 14 January 2009


As part of the HTTP response, Resin sends its name and version number in a server header, e.g. Server: Resin/3.0.14. Some sites prefer to change that header to a different value to hide the software version that's running the site.

To enable this, in the <server> block use

resin.xml

<resin xmlns="http://caucho.com/ns/resin">
<cluster id="app-tier">
    ...
    <server-header>Foo/1.0</server-header>
    ...
   <host id="">
      ...
    </host>
</cluster>
 </resin>
Personal tools