Guide to Hiding the Nginx Version header
(3 posts)
(2 voices)
-
If you followed guvnr's guide setting up nginx and would like to hide the version number, you will need to edit the nginx.conf file
vi /usr/local/nginx/conf/nginx.conf add this: server_tokens off; inside http{}Posted 6 months ago # -
If you want to completely remove the part that says "nginx" then you will need to edit the source code file called ngx_http_header_filter_module.c
vi /root/sources/nginx-0.7.62/src/http/ngx_http_header_filter_module.c (lines 48 and 49) static char ngx_http_server_string[] = "Server: yourdomain.com" CRLF; static char ngx_http_server_full_string[] = "Server: yourdomain.com" CRLF;Posted 6 months ago # -
Great tips osb - have removed the version number.
Thanks
Posted 5 months ago #
Reply
You must log in to post.
Want HTML?
a blockquote code em strong ul ol liPlace code between backticks `codeHere`
You've got it.
