I have a wordpress website running on a server with apache with a nginx as proxy in front of it.
The site has a plugin which displays the telegram channel in an widget as a iframe, i want to exclude results from this iframe in google search results.
I have tried to add this configuration to nginx.
location ~ /wptelegram { add_header X-Robots-Tag "noindex, nofollow, noarchive, nosnippet"; }
The problem is, now the iframe shows the start page, not the actual telegram widget content.
I have solved this by repeating the proxy config from the proxy location to this location.