Смена Nginx Server Signature

Vladimir Getmanshchuk vladget at openfilm.com
Sun Sep 13 01:24:58 MSD 2009


У меня тут новый "бзык": хочу сменить nginx Server Signature из стандартной
nginx/version (например nginx/0.7.61) на nginx/hostname.
(Ну это что бы в FF ServerSpy было видно какой из серверов отвечает)

1. Игорь, можно?

2. Как это правильно сделать?:
Я сменил в /usr/ports/www/nginx/work/nginx-0.7.61/src/core/nginx.h
NGINX_VERSION,
собрал, поставил, а оно, при старте, ругнулось:

# /usr/local/etc/rc.d/nginx start
Performing sanity check on nginx configuration:
[alert]: version web2 of nginx.pm is required, but 0.7.61 was found
configuration file /usr/local/etc/nginx/nginx.conf test failed
Starting nginx.
[alert]: version web2 of nginx.pm is required, but 0.7.61 was found

Я пошел в /usr/local/lib/perl5/site_perl/5.8.9/mach/nginx.pm
сменил там тоже: our $VERSION = 'web2';

Запускаю, ругнулось:
Performing sanity check on nginx configuration:
nginx object version 0.7.61 does not match bootstrap parameter web2 at
/usr/local/lib/perl5/5.8.9/mach/XSLoader.pm line 94.
Compilation failed in require.
BEGIN failed--compilation aborted.
[alert]: perl_parse() failed: 255
configuration file /usr/local/etc/nginx/nginx.conf test failed
Starting nginx.
nginx object version 0.7.61 does not match bootstrap parameter web2 at
/usr/local/lib/perl5/5.8.9/mach/XSLoader.pm line 94.
Compilation failed in require.
BEGIN failed--compilation aborted.
[alert]: perl_parse() failed: 255

Решил написать сюда.

-- 
Yours sincerely,
Vladimir Getmanshchuk

Senior Unix System Administrator
Openfilm, LLC

Email: vladget at openfilm.com
Skype: vladimir.getmanshchuk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx-ru/attachments/20090913/bb7f7147/attachment.html>


More information about the nginx-ru mailing list