How to change the HTTP Server header

From Resin 3.0

(Difference between revisions)
Jump to: navigation, search
 
(4 intermediate revisions by one user not shown)
Line 1: Line 1:
[[Category:Configuration]]
+
[[Category:HowTo]]
  
As part of the HTTP response, Resin sends its name and version number in a server header, e.g. <code>Server: Resin/3.0.14</code>.  Some sites prefer to change that header to a different value to hide the software version that's running the site.
+
For security, some sites like to change the HTTP Server header that Resin sends back to the browser.  The <server-header> tag inside the <cluster> block lets you change the header.
  
To enable this, in the &lt;server> block use
+
As part any HTTP response, Resin sends its name and version number in a server header, e.g. <code>Server: Resin/3.0.14</code>.  Some sites prefer to change that header to a different value to hide the software version that's running the site.
  
==== resin.conf ====
+
==== resin.xml ====
...
+
<server>
+
  ...
+
  <server-header>Foo/1.0</server-header>
+
  ...
+
</server>
+
  
= See Also =
+
<resin xmlns="http://caucho.com/ns/resin">
 
+
<cluster id="app-tier">
* [[Security Configuration]]
+
    ...
 +
    <server-header>Foo/1.0</server-header>
 +
    ...
 +
    <host id="">
 +
      ...
 +
    </host>
 +
</cluster>
 +
  </resin>

Latest revision as of 08:53, 14 January 2009


For security, some sites like to change the HTTP Server header that Resin sends back to the browser. The <server-header> tag inside the <cluster> block lets you change the header.

As part any 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.

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