|
|
|
|
АРХИВ :: nginx-ru
|
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
nested location + proxy_cache + http/server proxy_hide_header = bug
- To: nginx-ru@xxxxxxxxx
- Subject: nested location + proxy_cache + http/server proxy_hide_header = bug
- From: Konstantin Svist <fry.kun@xxxxxxxxx>
- Date: Thu, 12 Jul 2012 14:19:21 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=9GM0vuZ5gTaoO7GA05AtNhhu24VQvG9K9POTv/tOJcM=; b=XFezInqnBEEnnTTVPsxR29uRNQSu7wuccdXse93yd8ztaW5sMPK3C5No6X4xlN5/ph nqNZ6BgkvdT9w0fGz+VaKaPwxPgxM822/WkY/eRgUH4cq05BMTVmXEBUrOUIVkVQSJR4 Jo2ftELg/JiYM9376mW9H5R6zlHrsJBmcm3t2L9rxridcdGngpiTHGBuhh91aoVFMPHz EaPw1OBuqKR4ehj1tZC2bUIO8qDVxEthendy8oHgOc01XY9Kq2rlvzW5yRNizSL8TMi+ 9olkbO7BjWcGfDUYBr3pB6DxHw2JykjiZ4qEJO5kgXqvUnYHfSk2JUMMF2Six2xYAvA2 F0Hw==
Запрос на /index.php; бэкенд возвращает X-Powered-By: PHP...
Конфиг:
proxy_hide_header X-Powered-By; # не работает
server {
listen 80;
proxy_hide_header X-Powered-By; # не работает
location / {
proxy_pass http://localhost:1180;
proxy_hide_header X-Powered-By; # работает
location ~ \.php$ {
proxy_hide_header X-Powered-By; # работает
proxy_cache mycache;
proxy_set_header Host 'foobar.com';
}
}
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru
|
|
|