Hello,
We stumbled into a nice problem: we’d like to filter what nginx returns
when used as a proxy_pass. We want nginx to return content only if
content_type is an image, else en error like 403:
server {
location / {
proxy_pass …
if ($content_type !~* “image/”) Ã
return 403
}
}
}
Unfortunately, it seems that $content_type is set to “-”, according to
logfile…
Any idea ?
Thanks in advance.
Best regards,
C.