Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Like Apache, this is a quick edit to the source and recompile. From <a href="https://calomel.org/nginx.html" rel="noreferrer">Calomel.org</a>:</p> <blockquote> <p>The Server: string is the header which is sent back to the client to tell them what type of http server you are running and possibly what version. This string is used by places like Alexia and Netcraft to collect statistics about how many and of what type of web server are live on the Internet. To support the author and statistics for Nginx we recommend keeping this string as is. But, for security you may not want people to know what you are running and you can change this in the source code. Edit the source file <code>src/http/ngx_http_header_filter_module.c</code> at look at lines 48 and 49. You can change the String to anything you want.</p> </blockquote> <pre><code>## vi src/http/ngx_http_header_filter_module.c (lines 48 and 49) static char ngx_http_server_string[] = "Server: MyDomain.com" CRLF; static char ngx_http_server_full_string[] = "Server: MyDomain.com" CRLF; </code></pre> <p><strong>March 2011 edit:</strong> Props to Flavius below for pointing out a new option, replacing Nginx's standard <a href="http://wiki.nginx.org/HttpHeadersModule" rel="noreferrer">HttpHeadersModule</a> with the forked <a href="http://wiki.nginx.org/HttpHeadersMoreModule" rel="noreferrer">HttpHeadersMoreModule</a>. Recompiling the standard module is still the quick fix, and makes sense if you want to use the standard module and won't be changing the server string often. But if you want more than that, the HttpHeadersMoreModule is a strong project and lets you do all sorts of runtime black magic with your HTTP headers.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload