<div class="gmail_quote">2012/7/13 Konstantin Svist <span dir="ltr"><<a href="mailto:fry.kun@gmail.com" target="_blank">fry.kun@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Запрос на /index.php; бэкенд возвращает X-Powered-By: PHP...<br>
<br>
Конфиг:<br>
<br>
proxy_hide_header X-Powered-By; # не работает<br>
server {<br>
listen 80;<br>
proxy_hide_header X-Powered-By; # не работает<br>
location / {<br>
proxy_pass <a href="http://localhost:1180" target="_blank">http://localhost:1180</a>;<br>
proxy_hide_header X-Powered-By; # работает<br>
location ~ \.php$ {<br>
proxy_hide_header X-Powered-By; # работает<br>
proxy_cache mycache;<br>
proxy_set_header Host '<a href="http://foobar.com" target="_blank">foobar.com</a>';<br>
}<br>
}<br>
<br></blockquote><div><br></div><div><br></div><div>проще в php.ini прописать expose = Off </div></div>