can I use it on 0.4.12?<br><br><div><span class="gmail_quote">On 10/30/06, <b class="gmail_sendername">Igor Sysoev</b> <<a href="mailto:is@rambler-co.ru">is@rambler-co.ru</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Sun, 29 Oct 2006, Toshiki NISHIHATA wrote:<br><br>> 2006/10/29, Igor Sysoev <<a href="mailto:is@rambler-co.ru">is@rambler-co.ru</a>>:<br>>> On Sun, 29 Oct 2006, Toshiki NISHIHATA wrote:<br>>><br>>> > I use nginx of GNU/Linux Ecth(testing) package.
<br>>> ><br>>> > # nginx -v<br>>> > nginx version: nginx/0.4.2<br>>> > built by gcc 4.1.2 20060901 (prerelease) (Debian 4.1.1-13)<br>>> ><br>>> > For security, I want to hide the http header; "Server: nginx/0.4.2
<br>>> > ".<br>>> > I thouth that "proxy_pass_header Server" allows transferring "Server"<br>>> > header forbidden.<br>>> > So, I rewrite follow at /etc/nginx/nginx.conf, but header "Server" didn't
<br>>> > hide.<br>>> ><br>>> ><br>>> > location / {<br>>> > root /var/www;<br>>> > proxy_pass_header Server;<br>>> > }<br>>> ><br>>> > $ telnet
<a href="http://sample.com">sample.com</a> 80<br>>> > GET /index.html HTTP/1.0<br>>> ><br>>> > HTTP/1.1 200 OK<br>>> > Server: nginx/0.4.2 <-------------- want to hide!!
<br>>> > Date: Sat, 28 Oct 2006 16:58:28 GMT<br>>> > Content-Type: text/html<br>>> > Content-Length: 151<br>>> > ....<br>>> ><br>>> > What should I do?<br>>><br>
>> "proxy_pass_header Server" passes a backend Server header only.<br>>> To disable Server header for static responses you need to patch the<br>>> sources:<br>>> currently there is no directive to disable it.
<br>>><br>>><br>>> Igor Sysoev<br>>> <a href="http://sysoev.ru/en/">http://sysoev.ru/en/</a><br>>><br>>><br>><br>><br>> Thank you to respond a baby question.<br>><br>> As a future plan of development,
<br>> Don't you have a plan to add such a directive?<br><br>No.<br>The patch to delete the header entirely is attached.<br><br><br>Igor Sysoev<br><a href="http://sysoev.ru/en/">http://sysoev.ru/en/</a><br><br></blockquote>
</div><br><br clear="all"><br>-- <br>Life is hard