G J Piper
Regular Pleskian
I did a
Code:find /etc/nginx -type f -name \*.conf -exec http -il plesklin {} \;[\CODE] And the only place where it's added is in forwarding sites. Where does Plesk add that header for you? That may be the reason why more is working on my servers. You are also referring to a server-wide nginx place to add directives. I don't know of any such place. In the Plesk interface??
This directory is where you can add custom configuration files to add global settings for nginx (not in the UI):
/etc/nginx/conf.d/
Every configuration file found here has the "add_header X-Powered-By PleskLin;" in it, twice:
/etc/nginx/plesk.conf.d/vhosts/*.conf
I have about 30 domains hosted so there are 60 occurrences in my settings files. Deleting all of them in the config files, and making sure there are no "add_header" directives at all in the UI allows an add_header directive in "/etc/nginx/conf.d/custom-config.conf" to work. However, every time a setting is saved in the UI, all the "add_header X-Powered-By PleskLin;" occurrences are restored again. So, there really isn't a good fix other than for Plesk to add a truly global configuration field to the Plesk settings (using my recommended "include" in my previous post).
Try this:
grep -r 'PleskLin' /etc/nginx/plesk.conf.d/vhosts/*.conf
Last edited: