Nachdem Nginx 0.7.65 recht erfolgreich auf meinem Server läuft, hab ich mich mal an der Version 0.8.50 versucht.
Das ganze wieder nach bewährtem Schema aus Nginx auf Debian installieren / compilieren
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | cd /usr/src wget http://nginx.org/download/nginx-0.8.50.tar.gz tar xvfz nginx-0.8.50.tar.gz cd nginx-0.8.50 ./configure --prefix=/usr \ --conf-path=/etc/nginx/nginx.conf \ --sbin-path=/usr/sbin \ --user=www-data \ --group=www-data \ --http-log-path=/var/log/nginx/access.log \ --without-mail_pop3_module \ --without-mail_imap_module \ --without-mail_smtp_module \ --with-http_ssl_module \ --with-http_stub_status_module \ --with-http_gzip_static_module \ --with-http_addition_module \ --with-http_image_filter_module \ --with-file-aio \ --add-module=/usr/src/headers-more-nginx-module/ make make install /etc/init.d/nginx restart |
Schon war ich auf der neuen Version.
Wer aufgepasst hat, bemerkt, das ich ein paar neue configure Parameter benutze:
1 | --with-http_image_filter_module |
entfernt aus Image Dateien die EXIF informationen, wenn diese mehr als 5% der Dateigrösse ausmachen. Ich hab schonmal 30kb Information in Icons gefunden.
1 | --with-file-aio |
aktuelle Linux Kernel können es, warum nicht benutzen? (OK, ist jetzt keine wirkliche Erklärung)
Das wichtigste:
1 | --add-module=/usr/src/headers-more-nginx-module/ |
Ein Blick in den Firebug zeigt im Header, das Nginx braf seine Releasenummer mit überträgt.
Ich bin kein Freund davon, unnötige Informationen über die Software und Versionen Preis zu geben. Schon garnicht an Bots und Spider!
Unter http://wiki.nginx.org/NginxHttpHeadersMoreModule gibt es ein Modul, um einen belibige Felder im Header zu überschreiben/setzen. Den Sourcecode gibts auf Github.
http://github.com/agentzh/headers-more-nginx-module
1 2 | cd /usr/src git clone http://github.com/agentzh/headers-more-nginx-module.git headers-more-nginx-module |
In der /etc/nginx/nginx.conf wird dann im “http” Abschnitt das zu setzende Headerfeld angegeben:
1 | more_set_headers 'Server: nginx'; |
Wer will, kann sich hier auch als Apache tarnen

