• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Question Location of "HTTP response headers"

Zoo3

Regular Pleskian
Server operating system version
CentOS 7.9
Plesk version and microupdate number
18.0.46
I have not set the following items, yet when I check the security verification site, it appears they are already set.
Are they specified by Plesk? Where are they located?

Code:
add_header Referrer-Policy "XXX" always;
add_header X-Content-Type-Options "XXX" always;
add_header X-Frame-Options "XXX" always;
add_header X-Permitted-Cross-Domain-Policies "XXX" always;
add_header X-Robots-Tag "XXX" always;
add_header X-XSS-Protection "XXX" always;
 
As far as I know, Plesk doesn't set such headers.
Perhaps they were installed by some WordPress plugin?
 
As far as I know, Plesk doesn't set such headers.
Perhaps they were installed by some WordPress plugin?
I don't think so, as I don't use WordPress.

I checked all the nginx ".conf" files in the server again.
I still could not find the description of the X header there.
- /etc/nginx/conf.d
- /etc/nginx/plesk.conf.d
- /var/www/vhosts/MYDOMAIN/system/DOMAIN & SUBDOMAIN

There is one thing that concerns me. That is when I check the response headers in the developer tools of Firefox or Chrome, those headers appear twice each.
When I delete those header descriptions, of course those headers disappear. And when I add headers, they double.

What could be the cause of this?
 
Can you reproduce this behaviour on a newly created site with a default homepage?
 
Can you reproduce this behaviour on a newly created site with a default homepage?
I made up my mind and stopped the site to verify. I was able to verify that the headers are not set when I go to pure/initial nginx configuration.

However, when written as nginx, which is guided by the software provider, it seems to call the headers from somewhere. (The X header items are then removed from there.) The headers are set in the browser, even though I certainly don't write them.
This behavior may have nothing to do with Plesk. But what is an nginx configuration that recognizes headers when I haven't written any headers to be added anywhere?
 
According to your other posts you may have been mislead by the Nextcloud guide. There is not really a need to do any specific configuration for Nextcloud in Plesk. If you want to run it "Nginx only", simply deactivate (uncheck) the "Proxy mode" setting in the Apache & Nginx directives and switch your PHP handler to FPM via Nginx. If you need any special server directives, you could add them in the "Additional directives" section at the bottom of the "Apache & Nginx" configuration page in Plesk. However, the additional headers I would also not add there, but in the additional header section on top of that page. All the fast_cgi settings and many of the other major server settings that the Nextcloud docs explain are meant for a barebone server, not for a Plesk environment where most of that is already done by default.
 
However, the additional headers I would also not add there, but in the additional header section on top of that page. All the fast_cgi settings and many of the other major server settings that the Nextcloud docs explain are meant for a barebone server, not for a Plesk environment where most of that is already done by default.
Does "the additional header" at the top refer to the sixth item from the top in the Apache Common Settings section? I had assumed that it was Apache-only there. So I did not fill anything out there.

For example, do I not need the following settings?
Code:
location ~ \.php(?:$|/) {
    include fastcgi_params;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_param PATH_INFO $path_info;
    fastcgi_param HTTPS on;

    fastcgi_param modHeadersAvailable true;         # Avoid sending the security headers twice
    fastcgi_param front_controller_active true;     # Enable pretty urls
    fastcgi_pass php-handler;

    fastcgi_intercept_errors on;
    fastcgi_request_buffering off;

    fastcgi_max_temp_file_size 0;
}
 
I added Refferer-Policy, X headers, etc. to the additional headers at the top and left the Nginx additional directive field blank.
However, the Referrer-Policy and X headers are still duplicated. If additional headers are also left blank, those headers are completely eliminated.
Is this an event originating from Plesk or software?
 
It's something that is happening due to the nature of the Nginx/Apache combination I guess. The additional headers are not needed for proper operation of Nextcloud.
 
Back
Top