Hiding the identity of nginx

Dear All.

Have managed to check the following files to change the identity of
nginx to another string, plus the footer section of the error pages.

This seems to of work for the most part by changing the following files.

src/http/ngx_http_header_filter_module.c
src/http/ngx_http_special_response.c

But when I looked at the headers via firefox the images where still
showing nginx as the server. Where else would I need to change this in
the source to completely hide the string nginx from the public

thank you in advance

Huet

On Tue, Mar 30, 2010 at 09:42, huet bartels [email protected] wrote:

Dear All.

Have managed to check the following files to change the identity of
nginx to another string, plus the footer section of the error pages.

It would be easier (and more useful) to personalize your error pages.
For instance:
error_page 404 /40x.html;
location = /40x.html {
root /var/www/nginx-default/default;
}

But when I looked at the headers via firefox the images where still
showing nginx as the server. Â Where else would I need to change this in
the source to completely hide the string nginx from the public

The "Server: " header is what you’re looking for. I’m not sure if
that’s mandatory by some RFC, but you’d have to dig into other files.
If you search the archive you might find a ‘patch’ somewhere - whether
it still applies for current versions i don’t know.


() ascii-rubanda kampajno - kontraŭ html-a retpoŝto
/\ ascii ribbon campaign - against html e-mail

On 03/30/2010 11:42 AM, huet bartels wrote:

But when I looked at the headers via firefox the images where still
nginx mailing list
[email protected]
http://nginx.org/mailman/listinfo/nginx

Hi,

Try this module:
http://wiki.nginx.org/NginxHttpHeadersMoreModule

/gh

Hi Georgi,

Thanks for the pointer to the module I will give it a try.

regards

Huet

Hi Nuno,

Thank you for the tip on error pages, I am fairly new to nginx from
apache, and now I totally sold. I will never go back unless I have to.

regards

Huet

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs