Change server header (Nginx)

Discussion in 'Installation/Configuration' started by Kozley, Mar 4, 2012.

  1. Kozley

    Kozley Member

    I want to change server header completely for security reason. When I enter /src/http/ngx_http_header_filter_module.c as many wrote about this but mine are empty. Where could i find that the file?
    Last edited: Mar 4, 2012
  2. falko

    falko Super Moderator ISPConfig Developer

    What's the output of
    locate ngx_http_header_filter_module.c
  3. ezybuzz

    ezybuzz New Member

    Hi Kozley
    Dont search the file, definitely you cannot found it.
    You need to download the source code from nginx download... choose your version wisely... download it here [http]://
    Let say your version is Nginx 1.8.0, here is the total solution.
    wget [http]://
    tar -xvpzf nginx-1.8.0.tar.gz
    cd nginx-*
    Then edit the file
    vi -w +49 src/http/ngx_http_header_filter_module.c
    p/s: if you dont have vi editor just change vi to nano.
    Important: Please change the [http] to http coz I cannot post link here

Share This Page