Activity Stream
48,167 MEMBERS
63691 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 4 of 4
  1.     
    #1
    Member

    Thumbs up Nginx Custom Headers - Kick Ass Server :P

    Intro :
    In this tutorial , I will be showing how to Edit the default Server Headers of Nginx and set them to the required ones ..

    If you are aware of the word server header , read this :
    http://en.wikipedia.org/wiki/List_of_HTTP_header_fields

    for example if you find Google's server header , it says :
    Server: gws

    .................................................. ..

    you can find headers using curl

    curl -I google.com

    or use an online tool
    http://www.seoconsultants.com/tools/headers

    .................................................. ..

    download nginx source

    from
    http://nginx.org/

    then untar it ..
    browse to src/http/

    Open ngx_http_header_filter_module.c for editing

    find

    PHP Code: 
    static char ngx_http_server_string[] = "Server: nginx" CRLF;
    static 
    char ngx_http_server_full_string[] = "Server: " NGINX_VER CRLF
    and change it to the desired value






    now compile nginx as usual with your custom settings and requirements ..

    for this tutorial , I am just compiling with default options,

    ./configure
    make
    make install

    start nginx ( you can directly start by going into the directory in which it was installed and call it or create an init script for making things easier )

    here's my result for server header :




    Tutorial by desiboy @ KWWHunction !
    leave a link to this thread , if you post in somewhere else .
    desiboy Reviewed by desiboy on . Nginx Custom Headers - Kick Ass Server :P Intro : In this tutorial , I will be showing how to Edit the default Server Headers of Nginx and set them to the required ones .. If you are aware of the word server header , read this : http://en.wikipedia.org/wiki/List_of_HTTP_header_fields for example if you find Google's server header , it says : Server: gws .................................................... Rating: 5
    Coding Horror Fan
    I don't read PM's frequently .

  2.   Sponsored Links

  3.     
    #2
    Respected Developer
    Website's:
    PlatinumW.org NexusDDL.com HD-United.org CheckLinks.org FLVD.org
    Nice tutorial but it's common courtesy to leave the name as-is.

  4.     
    #3
    Banned
    Website's:
    xsl.tel xsltel.com
    Nice tutorial, Thanks

  5.     
    #4
    Member
    Quote Originally Posted by Dman View Post
    Nice tutorial but it's common courtesy to leave the name as-is.

    True , when we consider the time and dedication that the coder must has put into the project , but reverse engineering is also not bad
    Coding Horror Fan
    I don't read PM's frequently .

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [TUT]How to install Nginx Web Server ~ Domenic Edition
    By Dom in forum Technical and Security Tutorials
    Replies: 16
    Last Post: 22nd Mar 2012, 05:52 PM
  2. Nginx Overtakes Microsoft As No. 2 Web Server
    By Daniel in forum News & Current Events
    Replies: 1
    Last Post: 5th Jan 2012, 08:05 AM
  3. Litespeed / Apache / nginx /Zend server
    By Danielx64 in forum Polling Plaza
    Replies: 7
    Last Post: 13th Jul 2011, 10:06 AM
  4. ob_flush On Nginx Server? RapidLeech help
    By soogoomoo in forum Webmaster Discussion
    Replies: 9
    Last Post: 14th Nov 2010, 01:58 PM
  5. [Selling] Get a KICK Ass custom design
    By Wau in forum Completed Transactions
    Replies: 7
    Last Post: 29th Oct 2010, 04:48 PM

Tags for this Thread

BE SOCIAL