Welcome! Log In Create A New Profile

Advanced

Re: nested location + proxy_cache + http/server proxy_hide_header = bug

Albert Mikhaylov
July 12, 2012 09:10PM
2012/7/13 Konstantin Svist <fry.kun@gmail.com>

> Запрос на /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';
> }
> }
>
>

проще в php.ini прописать expose = Off
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

nested location + proxy_cache + http/server proxy_hide_header = bug

Konstantin Svist July 12, 2012 05:20PM

Re: nested location + proxy_cache + http/server proxy_hide_header = bug

Albert Mikhaylov July 12, 2012 09:10PM

Re: nested location + proxy_cache + http/server proxy_hide_header = bug

Konstantin Svist July 12, 2012 09:30PM

Re: nested location + proxy_cache + http/server proxy_hide_header = bug

Maxim Dounin July 24, 2012 12:14PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 186
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready