Custom Query (2297 matches)
Results (43 - 45 of 2297)
Ticket | Resolution | Summary | Owner | Reporter |
---|---|---|---|---|
#43 | invalid | Config error on chunked_transfer_encoding inside if statement | ||
Description |
Hi, I'm trying to turn off chunked coding for certain URLs. I have the following configuration: server { listen 8088; location / { proxy_pass http://localhost:9000; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto http; proxy_set_header Host $http_host; # Log API URLs should have chunked disabled if ($request_uri = '/api/log*') { chunked_transfer_encoding off; } } } But I get the following error: nginx: [emerg] "chunked_transfer_encoding" directive is not allowed here in /etc/nginx/sites-enabled/server:22 Is it a bug or is my configuration incorrect? Thanks, Yoav. |
|||
#44 | fixed | IPv6 support for HTTP realip module | ||
Description |
The attached patch, based on r4232, implements IPv6 support for the realip HTTP module (set_real_ip_from). |
|||
#45 | fixed | Некорректная обработка директив конфига | ||
Description |
Если в конфиге несколько вирт. хостов, и хотя бы для одного из них включено кэширование (директивой proxy_cache), то при проксировании запросов заголовки, управляющие кэшированием (If-Modified-Since, If-None-Match), не передаются бэкэнду для других хостов (может быть, и локэйшн тоже) даже если те не должны кэшироваться nginx. Попытка ручной установки заголовков приводит к 404 ошибке. Пример, на котором баг вопроизводится (опускаю не относящиеся к теме настройки): http { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_cache_path /opt/local/var/run/nginx/cache/images levels=1 keys_zone=images:1h max_size=1m; server { location / { proxy_pass http://apache; proxy_cache images; proxy_cache_valid 200 301 302 304 1h; proxy_hide_header "Set-Cookie"; proxy_ignore_headers "Cache-Control" "Expires"; } } server { location ~* \.jpg$ { proxy_pass http://apache; #backend will never get if-modified-since headers } } } |