Add X-Robots-Tag to all hosts. #3978
Replies: 2 comments
|
I had a similar issue, but it was related to security headers. I added my security headers under Proxy Hosts → Edit → Settings → Custom Nginx Configuration. These directives are added to the However, the add_header X-Served-By $host; This overrides all To fix it, I created a Custom Location with the path |
|
There is a global hook for this include /data/nginx/custom/server_proxy[.]conf;So create add_header X-Robots-Tag "noindex, nofollow, noarchive" always;Then restart the container and every host picks it up with no per host edits Other hooks in the same folder if you need wider scope
Keep |
Uh oh!
There was an error while loading. Please reload this page.
I installed a Nginx Reverse Proxy via docker.
I would like to add
X-Robots-Tagto all hosts. I tried adding the option:in
Advanced / Custom Nginx Configurationbut it doesn’t work.
I read that the
add_headeroptions if not included in a custom location do not work.What custom location can I use? Or does anyone know another way to make it default?
All reactions